{ switch(e.key) { case 'k': if (e.metaKey || e.ctrlKey) { e.preventDefault() open = !open; if (open) { document.body.classList.add('overflow-hidden'); } else { document.body.classList.remove('overflow-hidden'); } } } }">
`; resultsHTML += results .map((item) => { return `
${item.meta.title}

…${item.excerpt}…

`; }) .join(""); modalSearchResults.innerHTML = resultsHTML; } } modalSearchInput.addEventListener("input", modalSearch); if (window.heap !== undefined) { modalSearchResults.addEventListener('click', function(event) { if (event.target.tagName === 'A' && event.target.closest('.link')) { const searchQuery = event.target.getAttribute('data-query'); const resultIndex = event.target.getAttribute('data-index'); const url = new URL(event.target.href); const properties = { docs_search_target_path: url.pathname, docs_search_target_title: event.target.textContent, docs_search_query_text: searchQuery, docs_search_target_index: resultIndex, docs_search_source_path: window.location.pathname, docs_search_source_title: document.title, }; heap.track("Docs - Search - Click - Result Link", properties); } }); } });

docker compose down

DescriptionStop and remove containers, networks
Usagedocker compose down [OPTIONS] [SERVICES]

Description

Stops containers and removes containers, networks, volumes, and images created by up.

By default, the only things removed are:

  • Containers for services defined in the Compose file.
  • Networks defined in the networks section of the Compose file.
  • The default network, if one is used.

Networks and volumes defined as external are never removed.

Anonymous volumes are not removed by default. However, as they don’t have a stable name, they are not automatically mounted by a subsequent up. For data that needs to persist between updates, use explicit paths as bind mounts or named volumes.

Options

OptionDefaultDescription
--remove-orphansRemove containers for services not defined in the Compose file
--rmiRemove images used by services. "local" remove only images that don't have a custom tag ("local"|"all")
-t, --timeoutSpecify a shutdown timeout in seconds
-v, --volumesRemove named volumes declared in the "volumes" section of the Compose file and anonymous volumes attached to containers
-