-
Notifications
You must be signed in to change notification settings - Fork 8
Get container ip by service name
Maksym Zaporozhets edited this page Jun 14, 2023
·
3 revisions
Get Docker container IP by service name in the docker-compose*.yaml
.
php "${DOCKERIZER_PROJECTS_ROOT_DIR}dockerizer_for_php/bin/dockerizer" composition:get-container-ip varnish
CAUTION!
This command is currently not used in any Bash aliases. We strongly recommend using docker exec
to perform and operations
from inside a container. Use the tools bundled into the container when possible to avoid any issues with the environment.
It is also worth using network aliases and access the container by its domain name instead of IP.
Though, this command may still be useful for debugging purposes or in some specific cases.
-
service-name
(first argument, required): Service name in thedocker-compose*.yaml
. -
--path
(optional): Path to docker-compose files. Default:getcwd()
.
- docker:mysql:connect
- docker:mysql:export-db
- docker:mysql:import-db
- docker:mysql:upload-to-aws
- docker:mysql:generate-metadata
- docker:mysql:reconstruct-db
- docker:mysql:test-metadata
- magento:setup
- magento:reinstall
- magento:test-module-install
- magento:test-templates
- magento:test-dockerfiles
- MacOS and Docker Desktop support
- Bash aliases
- Install Symfony with Dockerizer
- Running-apps-with-existing-Docker-compositions
- Limitations
- Building MySQL images with DB: how it works
- Configure AWS Lambda
- Gitlab pipeline to build images
- Managing AWS S3 access
- Using AWS credentials with Dockerizer
- Access management cheat-sheet
- FAQ