docke学习

1.安装docker

  参考地址:http://www.oschina.net/news/54811/docker-1-0-1-is-provided-test-on-ubuntu-14-04-lts

2.创建docker用户及提交镜像

 参考地址:http://blog.csdn.net/rually/article/details/51439212

3.docker学习

 参考地址:http://www.open-open.com/lib/view/open1423703640748.html#articleHeader12

提交镜像:

fangbing@fangbing-B85M-DS3H-A:~$sudo service docker start
docker start/running, process 14810
fangbing@fangbing-B85M-DS3H-A:~$sudo docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
ubuntu              latest              bd3d4369aebc        3 days ago          126.6 MB
fangbing@fangbing-B85M-DS3H-A:~$sudo docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
fangbing@fangbing-B85M-DS3H-A:~$sudo docker tag bd3d4369aebc fangbing/test_ubuntu:tagname
fangbing@fangbing-B85M-DS3H-A:~$sudo docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: fangbing
Password:
Login Succeeded
fangbing@fangbing-B85M-DS3H-A:~$sudo docker push fangbing/test_ubuntu:tagname
The push refers to a repository [docker.io/fangbing/test_ubuntu]
0cad5e07ba33: Mounted from library/ubuntu
48373480614b: Mounted from library/ubuntu
055757a19384: Mounted from library/ubuntu
c6f2b330b60c: Mounted from library/ubuntu
c8a75145fcc4: Mounted from library/ubuntu
tagname: digest: sha256:463b797bb7cb49e6df205d51479425adbac1d122dac5922cf6bad9277fe7dfbe