[摘要] 已经在之前的文章《创建基于CentOS下sshd和httpd服务的Docker image》中将最近这些天docker学习的成果做了简单的总结,现在提交了自己的docker image到index.docker.io上,方便大家pull下来使用. Image Tag:centos6.4,sshd,httpd. 使用方法:docker pull yu2hei/centos
查询Docker上的镜像:
My docker image info:Pushing tag for rev [8d28bc5fa842] on {https://registry-1.docker.io/v1/repositories/yu2hei/centos/tags/sshd-httpd}
# docker search centos|grep yu2hei yu2hei/centos
获取镜像:
# docker pull yu2hei/centos
启动:
# docker run -d -p 2222:22 -p 8000:80 yu2hei/centos
登录:
ssh locahost -l root -p 2222 (root/mypwd)
Just enjoy it, any question please comment this thread or email to me,thanks.