Last active
June 29, 2016 09:47
-
-
Save ajeetraina/00fc74ec1687a015fc01b3ad4b93c0bb to your computer and use it in GitHub Desktop.
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
Day - 6/29/2016 | |
1. Installing Docker | |
#apt-get install docker* | |
2. Checking the version | |
#docker version | |
3. Listing the images | |
#docker images | |
4.Listing the docker installable, images, containers etc | |
#docker info | |
5. How to pull Ubuntu image from dockerhub: | |
#docker pull ubuntu | |
Pulling the specific version: | |
#docker pull ubuntu:14.04 | |
6. How to see the containers? | |
#docker ps | |
7. How to run the container? | |
#docker run -itd ubuntu /bin/bash | |
8. How to enter into the container? | |
#docker attach <container ID> | |
9. How to come out of the container? | |
Press Ctrl+P+Q | |
10. A Single command to pull and run the container? | |
docker run -itd centos /bin/bash | |
11. How to rename a container | |
#docker rename <old name> <new name> | |
12. How to check the consumed CPU and Memory? | |
#docker stats <container ID or container name> | |
13. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment