|
@@ -71,13 +71,13 @@ class TopLevelCommand(Command):
|
|
|
"""Fast, isolated development environments using Docker.
|
|
|
|
|
|
Usage:
|
|
|
- compose [options] [COMMAND] [ARGS...]
|
|
|
- compose -h|--help
|
|
|
+ docker-compose [options] [COMMAND] [ARGS...]
|
|
|
+ docker-compose -h|--help
|
|
|
|
|
|
Options:
|
|
|
--verbose Show more output
|
|
|
--version Print version and exit
|
|
|
- -f, --file FILE Specify an alternate compose file (default: compose.yml)
|
|
|
+ -f, --file FILE Specify an alternate compose file (default: docker-compose.yml)
|
|
|
-p, --project-name NAME Specify an alternate project name (default: directory name)
|
|
|
|
|
|
Commands:
|
|
@@ -99,7 +99,7 @@ class TopLevelCommand(Command):
|
|
|
"""
|
|
|
def docopt_options(self):
|
|
|
options = super(TopLevelCommand, self).docopt_options()
|
|
|
- options['version'] = "compose %s" % __version__
|
|
|
+ options['version'] = "docker-compose %s" % __version__
|
|
|
return options
|
|
|
|
|
|
def build(self, project, options):
|
|
@@ -261,11 +261,11 @@ class TopLevelCommand(Command):
|
|
|
|
|
|
For example:
|
|
|
|
|
|
- $ compose run web python manage.py shell
|
|
|
+ $ docker-compose run web python manage.py shell
|
|
|
|
|
|
By default, linked services will be started, unless they are already
|
|
|
running. If you do not want to start linked services, use
|
|
|
- `compose run --no-deps SERVICE COMMAND [ARGS...]`.
|
|
|
+ `docker-compose run --no-deps SERVICE COMMAND [ARGS...]`.
|
|
|
|
|
|
Usage: run [options] [-e KEY=VAL...] SERVICE [COMMAND] [ARGS...]
|
|
|
|
|
@@ -280,7 +280,7 @@ class TopLevelCommand(Command):
|
|
|
--rm Remove container after run. Ignored in detached mode.
|
|
|
--service-ports Run command with the service's ports enabled and mapped
|
|
|
to the host.
|
|
|
- -T Disable pseudo-tty allocation. By default `compose run`
|
|
|
+ -T Disable pseudo-tty allocation. By default `docker-compose run`
|
|
|
allocates a TTY.
|
|
|
"""
|
|
|
service = project.get_service(options['SERVICE'])
|
|
@@ -352,7 +352,7 @@ class TopLevelCommand(Command):
|
|
|
Numbers are specified in the form `service=num` as arguments.
|
|
|
For example:
|
|
|
|
|
|
- $ compose scale web=2 worker=3
|
|
|
+ $ docker-compose scale web=2 worker=3
|
|
|
|
|
|
Usage: scale [SERVICE=NUM...]
|
|
|
"""
|
|
@@ -372,7 +372,7 @@ class TopLevelCommand(Command):
|
|
|
'Service "%s" cannot be scaled because it specifies a port '
|
|
|
'on the host. If multiple containers for this service were '
|
|
|
'created, the port would clash.\n\nRemove the ":" from the '
|
|
|
- 'port definition in compose.yml so Docker can choose a random '
|
|
|
+ 'port definition in docker-compose.yml so Docker can choose a random '
|
|
|
'port for each container.' % service_name)
|
|
|
|
|
|
def start(self, project, options):
|
|
@@ -387,7 +387,7 @@ class TopLevelCommand(Command):
|
|
|
"""
|
|
|
Stop running containers without removing them.
|
|
|
|
|
|
- They can be started again with `compose start`.
|
|
|
+ They can be started again with `docker-compose start`.
|
|
|
|
|
|
Usage: stop [SERVICE...]
|
|
|
"""
|
|
@@ -405,14 +405,14 @@ class TopLevelCommand(Command):
|
|
|
"""
|
|
|
Build, (re)create, start and attach to containers for a service.
|
|
|
|
|
|
- By default, `compose up` will aggregate the output of each container, and
|
|
|
- when it exits, all containers will be stopped. If you run `compose up -d`,
|
|
|
+ By default, `docker-compose up` will aggregate the output of each container, and
|
|
|
+ when it exits, all containers will be stopped. If you run `docker-compose up -d`,
|
|
|
it'll start the containers in the background and leave them running.
|
|
|
|
|
|
- If there are existing containers for a service, `compose up` will stop
|
|
|
+ If there are existing containers for a service, `docker-compose up` will stop
|
|
|
and recreate them (preserving mounted volumes with volumes-from),
|
|
|
- so that changes in `compose.yml` are picked up. If you do not want existing
|
|
|
- containers to be recreated, `compose up --no-recreate` will re-use existing
|
|
|
+ so that changes in `docker-compose.yml` are picked up. If you do not want existing
|
|
|
+ containers to be recreated, `docker-compose up --no-recreate` will re-use existing
|
|
|
containers.
|
|
|
|
|
|
Usage: up [options] [SERVICE...]
|