Other commands
There are commands that can help in printing the available information.
help
help
is a terminal command that provides usage instructions for commands available.
version
As seen in previous chapters, version
displays the currently running version of Compose:
$ docker compose version Docker Compose version v2.2.3
port
port
prints the port for a binding:
$ docker compose port task-manager 8080 0.0.0.0:8080
config
config
is used to validate the Compose configuration and instruct information to print:
$ docker-compose config services: redis: image: redis ports: - published: 6379 target: 6379 task-manager: build: context: /path/to/Chapter2 environment: REDIS_HOST: redis:6379 ...