Created
July 8, 2021 16:45
-
-
Save piksel/2d66c663bb9833285062fe1a573baef8 to your computer and use it in GitHub Desktop.
Change in containers created by docker compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using docker subcommand `compose` | |
$ docker compose up | |
$ docker container inspect kafka -f ' Image: {{ .Image }}{{"\n"}}Config.Image: {{.Config.Image}}' | |
Image: sha256:d694642b6bef4693082bd6192d923f37af9e27ef15beef9de7d93a51d1a5d74d | |
Config.Image: sha256:d694642b6bef4693082bd6192d923f37af9e27ef15beef9de7d93a51d1a5d74d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using standalone `docker-compose` | |
$ docker-compose up | |
$ docker container inspect kafka -f ' Image: {{ .Image }}{{"\n"}}Config.Image: {{.Config.Image}}' | |
Image: sha256:d694642b6bef4693082bd6192d923f37af9e27ef15beef9de7d93a51d1a5d74d | |
Config.Image: bitnami/kafka:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay, finally got it working after finding the last paragraph in the docker/compose-cli README
So, the v1.* releases does not include
docker compose
. So... what are they? Go-versions ofdocker-compose
? Nope, they are patched versions of the Docker CLI, adding another version field labeledCloud integration
...But okay, downloading the latest pre-release
v2.0.0-beta.6
and moving it into the cli-plugins folder:Finally!
No image tag, only ID. Well, at least it's consistent...