Editing Docker-compose up

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{lc}}
+
https://docs.docker.com/compose/reference/up/
<code>docker-compose</code> [[build]]s, (re)creates, starts, and attaches to containers for a service.
+
 
* https://docs.docker.com/compose/reference/up/
 
  
== Examples ==
+
* <code>docker-compose up -d</code>
* <code>[[docker-compose up -d]]</code>
 
 
::<code>-d daemon</code>
 
::<code>-d daemon</code>
* <code>[[docker-compose up --help]]</code>
+
* <code>[[docker-compose]] up</code> or <code>docker-compose up SERVICE_NAME</code> <ref>https://docs.docker.com/compose/reference/up/</ref> Builds, (re)creates, starts, and attaches to containers for a service.
* <code>[[docker-compose]] up</code>
+
 
* <code>docker-compose up --timeout 600</code>
+
 
* <code>docker-compose up SERVICE_NAME</code>
 
* <code>docker-compose up -d SERVICE_NAME</code>
 
* <code>[[docker-compose -f]] NAME_OF_YOUR_FILE up</code>
 
<ref>https://docs.docker.com/compose/reference/up/</ref> Builds, (re)creates, starts, and attaches to containers for a service.
 
* <code>[[docker-compose up --force-recreate]]</code>
 
* <code>[[docker-compose up —-no-start]]</code>
 
  
  
Line 23: Line 15:
  
  
 +
== Examples ==
 
* <code>docker-compose up</code>
 
* <code>docker-compose up</code>
 
* <code>docker-compose up SERVICE_NAME</code>
 
* <code>docker-compose up SERVICE_NAME</code>
Line 28: Line 21:
 
  docker-compose up -d
 
  docker-compose up -d
 
  Recreating SERVICE_NAME... done
 
  Recreating SERVICE_NAME... done
 +
  
 
* Build containers but do not start them:
 
* Build containers but do not start them:
Line 41: Line 35:
 
* Using specific docker compose file:
 
* Using specific docker compose file:
 
  <code>docker-compose -f NAME_OF_YOUR_FILE up</code>
 
  <code>docker-compose -f NAME_OF_YOUR_FILE up</code>
 
== Examples with errors ==
 
docker-compose up
 
ERROR: The Compose file is invalid because:
 
Service SERVICE_NAME has neither an [[image]] nor a build context specified. At least one must be provided.
 
 
docker-compose up
 
ERROR: yaml.parser.ParserError: while parsing a block mapping
 
  in "./docker-compose.yml", line 1, column 1
 
expected <block end>, but found '<block mapping start>'
 
  in "./docker-compose.yml", line 3, column 2
 
 
docker-compose up
 
ERROR: build path /srv/mattermost/db either does not exist, is not accessible, or is not a valid URL.
 
Solution: <code>[[git clone]] https://github.com/mattermost/mattermost-docker.git</code>
 
 
docker-compose up
 
ERROR:
 
        [[Can't find a suitable configuration file in this directory or any parent]]. Are you in the right directory?
 
 
        Supported filenames: [[docker-compose.yml]], [[docker-compose.yaml]], [[compose.yml]], [[compose.yaml]]
 
 
docker-compose up
 
.../...
 
Error response from daemon: failed to create shim task: [[OCI runtime]] create failed: runc create failed: unable to start
 
container process: error during container init: error mounting "/host_mnt/Users/user/prometheus.yml" to rootfs at
 
"[[/etc/prometheus/prometheus.yml]]": mount /host_mnt/Users/user/prometheus.yml:/etc/prometheus/prometheus.yml (via
 
[[/proc/self/]]fd/14), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the [[expected type]]
 
 
[[docker-compose up (Erigon)]]
 
  
 
== Related commands ==
 
== Related commands ==
 
* {{Docker-compose operations}}
 
* {{Docker-compose operations}}
* <code>[[docker-compose logs]], [[docker-compose logs -f]]</code>
 
 
* <code>[[docker-compose pull]]</code>
 
* <code>[[docker-compose pull]]</code>
* [[Docker-compose.yml examples]]
 
* <code>[[docker-compose down]] && [[docker-compose build]] --pull && [[docker-compose up]] -d</code>
 
* <code>[[docker image ls]]</code>
 
* <code>[[--no-deps]]</code>
 
* [[Docker volumes]]
 
  
 
== See also ==
 
== See also ==
* {{Docker-compose operations}}
 
 
* {{docker-compose}}
 
* {{docker-compose}}
 +
* {{Docker}}
  
 
[[Category:Docker]]
 
[[Category:Docker]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: