/
Pack Hosting Panel

Command - docker:compose:run

Hoe werkt het `docker:compose:run` commando


Voor je deze documentatie leest gaan we er vanuit dat je bekend met de docker basics.

Het commando docker:compose:run gebruik je het uitvoeren van een enkele commando op een service. Je kunt de uitleg van dit commando vinden via hipex docker:compose:run --help. Dit is een wrapper om https://docs.docker.com/compose/reference/run/.

Description:
  Run a one-off command on a service.

Usage:
  docker:compose:run [options] [--] <service> <docker_command> [<args>...]
  docker:compose:run
This command is a wrapper around the default `docker-compose` command. For more information see https://docs.docker.com/compose/reference/run/

For security purposes the following restrictions are in place:
- Bind volumes are only allowed to directories and files with both read and write permissions. And read permissions for the whole path
- All exposed ports must be mapped between 10000-50000
- The `--service-ports` flag is not supported, you must use `--publish`
- The `--name` flag is not supported.

Arguments:
  service                          Service
  docker_command                   Command
  args                             Command args

Options:
      --detach                     Detached mode: Run command in the background.
      --entrypoint=ENTRYPOINT      Override the entrypoint of the image.
  -e, --env=ENV                    Set environment variables (--env KEY=VAL) (multiple values allowed)
      --label=LABEL                Add or override a label (--label KEY=VAL) (multiple values allowed)
      --no-deps                    Don't start linked services.
      --rm                         Remove container after run. Ignored in detached mode.
      --publish=PUBLISH            Publish a container's port(s) to the host (multiple values allowed)
      --volume=VOLUME              Bind mount a volume (multiple values allowed)
  -w, --workdir=WORKDIR            Working directory inside the container
  -f, --file=FILE                  Specify an alternate compose file [default: "docker-compose.yml"]
  -p, --project-name=PROJECT-NAME  Specify an alternate project name
  -h, --help                       Display this help message
  -q, --quiet                      Do not output any message
  -V, --version                    Display this application version
      --ansi                       Force ANSI output
      --no-ansi                    Disable ANSI output
  -n, --no-interaction             Do not ask any interactive question
  -v|vv|vvv, --verbose             Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug