You can use index
to get the value of that key (wrapped for readability);
docker inspect \
--format '{{ index .Config.Labels "com.docker.compose.project"}}' \
new_sc2_1
That should give you the name of the project
Related Contents:
- How to fix docker: Got permission denied issue
- How do I define the name of image built with docker-compose
- docker-compose up for only certain containers
- An error, “failed to solve with frontend dockerfile.v0”
- How do I set hostname in docker-compose?
- E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
- How to tag docker image with docker-compose
- Should I use docker-compose up or run?
- Docker Compose – Share named volume between multiple containers
- Provide static IP to docker containers via docker-compose
- Docker-compose set user and group on mounted volume
- Using –add-host or extra_hosts with docker-compose
- Docker Compose does not allow to use local images
- How to pass environment variable to docker-compose up
- context or workdir for docker-compose
- Docker compose port mapping
- Is there any way to disable a service in docker-compose.yml
- How is Docker Compose version 2 “volumes” syntax supposed to look?
- How to pass ARG value to ENTRYPOINT?
- How to stop all containers when one container stops with docker-compose?
- How to rebuild and update a container without downtime with docker-compose?
- How can I make docker-compose bind the containers only on defined network instead of 0.0.0.0?
- Is Docker ARG allowed within CMD instruction
- docker-compose gives ERROR: Cannot locate specified Dockerfile: Dockerfile
- multi-stage build in docker compose?
- Keycloak 8: User with username ‘admin’ already added
- Docker-compose, conditional statements? (e.g. add volume only if condition)
- Set $PROJECT_NAME in docker-compose file
- Using an IDE while developing on a docker container
- Docker ERROR: Error processing tar file(exit status 1): unexpected EOF
- How to push Docker containers managed by Docker-compose to Heroku?
- docker-compose volumes_from equivalent with version 3
- docker-compose: define mount for bind mount and managed mount
- How to assign domain names to containers in Docker?
- Terminate docker compose when test container finishes
- Docker-compose volume mount before run
- docker-compose: Sharing container between multiple projects by using the same container_name
- `docker pull` returns `denied: access forbidden` from private gitlab registry
- Error in docker: network “path” declared as external, but could not be found
- Port Publishing When Running with Docker Compose
- ERROR: Pool overlaps with other one on this address space when starting my_project docker setup
- Mounted volume is empty inside container
- docker-compose build args not passing to Dockerfile
- Create named docker volume with docker-compose?
- Building common dependencies with docker-compose
- Docker Compose to CoreOS
- strconv.Atoi: parsing “”: invalid syntax
- How to use the host network, and any other user-defined network together in Docker-Compose?
- How to install packages from Docker compose?
- Quotes on docker-compose.yml ports make any difference?