Posts

Showing posts with the label Docker

Docker Base Image

Environment: CentOS 6.6 1. Install epel package: rpm -ivh epel-release-6-8.noarch.rpm 2. Install docker: yum install docker-io 3. Start docker service: service docker start 4. Download Image: docker pull <image> Example: docker pull ubuntu:12.04 5. Check image: docker images 6. Delete image: docker rmi <image id> Example: docker rmi 78cef618c77e 7. Start image: docker run -t -i ubuntu:12.04 /bin/bash 8. Check container: docke ps -a 9. Start container: docker start <container name> Example: docker start hungry_mestorf 10. Stop container: docker stop <container name> 11. Delete container: docker rm <container name> Docker log: /var/log/docker