Simple Docker workflow - Quick start

Simple Docker workflow - Quick start
 
In this tutorials, I am trying to cover the simple quickstart Docker workflow and for the example, I am creating Ubantu containee and using it to showcase this tutorial.
 
Step 1 - Download the Ubantu image container from the Docker Hub
# docker pull -a ubuntu
 
Step 2 - Run the ubuntu container and access to ther /bin/bash commands prompt
# docker run -it ubuntu /bin/bash
 
Step 3 - Stop the container 
# docker stop container_id
 
How to get the container id?
# docker ps -a
 
Step 4: Start the container again?
# docker start container_id
 
Step 5: Exit the running container without stopping the container
# exit
 
Step 6: Login the running container for bash prompt
# sudo docker exec -i -t 2e56ad1705b1 /bin/bas
 
For more - Refer 
http://www.scmgalaxy.com/scm/package-management/how-to-get-bash-or-ssh-into-a-running-container-in-background-mode.html
Rate this item
(0 votes)
Rajesh Kumar

.

Total, Over 12 years of extensive experience in the Software Configuration Management domain having depth knowledge of DevOps, Continuous Integration and Delivery, Configuration Management, Build and Installer, Release Management and Application Management.

What corporate management say about us?

Rajesh is very knowledgeable instructor he has a good exposure on real time issue and case studies he is experienced in large environment issue and challenges. I really liked how Rajesh used a lot of examples so that concepts were more easily understood, I like the examples that Rajesh give to help us remember things…they are usually real scenario, real life problems that we encounter frequently. <br /> He is well organised in terms of study materiel that you can refer anytime after you complete your course. His blogs are crisp and has to the point key content that he discussed during session to remember if you refer them remotely.

Gaurav Vishnoi
I am having 11+ years of experience in java, due to increasing complexity of system and environment I opted for this tanning and find it very useful., Noida
Sep 02, 2016

Authors

Login