Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verbose flag #1640

Closed
haf opened this issue Jul 3, 2015 · 5 comments
Closed

verbose flag #1640

haf opened this issue Jul 3, 2015 · 5 comments

Comments

@haf
Copy link

haf commented Jul 3, 2015

I want a verbose flag to docker-compose up so that I can see what docker command that Compose calls.

@aanand
Copy link

aanand commented Jul 3, 2015

$ docker-compose --verbose up

Sorry about the argument ordering.

@aanand aanand closed this as completed Jul 3, 2015
@bluebinary
Copy link

bluebinary commented Sep 30, 2021

The --verbose flag can also be used for other docker-compose actions, such as docker-compose --verbose build, which can be quite helpful sometimes to see what is going on behind the scenes.

@johnnybenson
Copy link

johnnybenson commented Mar 14, 2022

Looks like --verbose was removed. docker-compose --verbose build doesn't do anything.

➜  stream git:(docker-dev) ✗ docker-compose --version
Docker Compose version v2.2.1
➜  stream git:(docker-dev) ✗ docker-compose --help

Usage:  docker compose [OPTIONS] COMMAND

Docker Compose

Options:
      --ansi string                Control when to print ANSI control characters ("never"|"always"|"auto") (default "auto")
      --compatibility              Run compose in backward compatibility mode
      --env-file string            Specify an alternate environment file.
  -f, --file stringArray           Compose configuration files
      --profile stringArray        Specify a profile to enable
      --project-directory string   Specify an alternate working directory
                                   (default: the path of the Compose file)
  -p, --project-name string        Project name

Commands:
  build       Build or rebuild services
  convert     Converts the compose file to platform's canonical format
  cp          Copy files/folders between a service container and the local filesystem
  create      Creates containers for a service.
  down        Stop and remove containers, networks
  events      Receive real time events from containers.
  exec        Execute a command in a running container.
  images      List images used by the created containers
  kill        Force stop service containers.
  logs        View output from containers
  ls          List running compose projects
  pause       Pause services
  port        Print the public port for a port binding.
  ps          List containers
  pull        Pull service images
  push        Push service images
  restart     Restart containers
  rm          Removes stopped service containers
  run         Run a one-off command on a service.
  start       Start services
  stop        Stop services
  top         Display the running processes
  unpause     Unpause services
  up          Create and start containers
  version     Show the Docker Compose version information

Run 'docker compose COMMAND --help' for more information on a command.
➜  stream git:(docker-dev) ✗

image

@elbakerino
Copy link

With compose v2 the new docker compose (no hyphen) should be used.

Directly using build supports --progress=plain:

docker compose build --progress=plain

for docker compose up --build i've found no way,

In compose v2 the -D, --debug of docker can be used - this only prints WHAT was done, but not the output of those RUN commands:

docker -D compose up --build
docker --debug compose up --build

@pararti
Copy link

pararti commented Jun 5, 2024

how id can do there docker exec -i container_id mysql -uroot -ppassword db_name < db.sql use --verbose ???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants