Created
July 21, 2022 07:24
-
-
Save casheeeewnuts/844ff28b2e6e4dc4f7c2a99cd9d53a92 to your computer and use it in GitHub Desktop.
docker-compose.ymlを取得するワンライナー
This file contains 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
curl -s --unix-socket /var/run/docker.sock http://localhost/containers/json | jq '.[].Labels."com.docker.compose.project.config_files"' | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
APIドキュメント https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerList