How do I get a Docker container's IP address from the host?

0 votes

I want to get the container's IP address right from the host after a new container is created?

Once Docker creates the container, I want to roll my own code deployment and container configuration scripts.

How do I do it ?

Can anyone help me with this?


Aug 29, 2018 in DevOps & Agile by Damon Salvatore
• 5,450 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Save your docker image as a tar file:

docker save -o <path for generated tar file> <image name>

After that copy your image to a new system with regular file transfer tools such as cp or scp. Also you will have to load the image into Docker:

docker load -i <path to image tar file>

I hope it would help you resolve your query.

answered Aug 29, 2018 by shubham
• 6,560 points

Related Questions In DevOps & Agile

0 votes
1 answer
0 votes
1 answer

How do I list containers in Docker?

To view running containers use  below command: docker ps I you want ...READ MORE

answered Sep 4, 2018 in DevOps & Agile by Damon Salvatore
• 5,450 points
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,140 points
+1 vote
2 answers

How do I run Apache server from Docker without mapping to a location?

If you're seeing a 500 error, that's ...READ MORE

answered Oct 18, 2018 in DevOps & Agile by lina
• 8,100 points
+13 votes
5 answers

How do I run a cron job inside a docker container

If you can SSH into your server ...READ MORE

answered Jul 27, 2018 in DevOps & Agile by Kalgi
• 36,340 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.