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

Comments

  1. Really great post, I simply unearthed your site and needed to say that I have truly appreciated perusing your blog entries. I want to say thanks for great sharing.

    DevOps Training in chennai

    DevOps Training in Bangalore

    ReplyDelete

Post a Comment

Popular posts from this blog

Nginx Proxy & Load Balance & LNMP

Snort+barnyard2+Snorby CentOS 6.5_64 Installation

ORACLE Error