Last active
January 25, 2016 22:08
-
-
Save richardsonlima/295892b371434f16f4a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
* CentOS Dockerfiles for various common implementations | |
https://github.com/CentOS/CentOS-Dockerfiles | |
[+] Centos 7.2 | |
- Pull an image | |
$ sudo docker pull centos | |
- List images | |
$ sudo docker images | |
- List containers | |
$ sudo docker ps | |
- Run image | |
$ sudo docker exec -t -i elated_mcclintock cat /etc/redhat-release | |
$ sudo docker exec -t -i elated_mcclintock bash | |
- Rename container | |
$ sudo docker rename elated_mcclintock centos7_2 | |
[+] Docker Container Centos7.2 --> Apache2+PHP5 | |
$ sudo docker exec -t -i 8aeb19df155d bash | |
$ | |
- Commit changes | |
$ sudo docker commit 8aeb19df155d | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment