Chinaunix首页 | 论坛 | 博客
  • 博客访问: 460309
  • 博文数量: 108
  • 博客积分: 25
  • 博客等级: 民兵
  • 技术积分: 1134
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-29 19:43
文章分类

全部博文(108)

文章存档

2016年(10)

2015年(9)

2014年(73)

2013年(16)

我的朋友

分类: LINUX

2014-07-31 17:26:10

我的机器是虚拟机Ubuntu14  

step 1:
apt-get  update 

step 2:

点击(此处)折叠或打开

  1. root@localhost:~# apt-get install docker.io
  2. Reading package lists... Done
  3. Building dependency tree
  4. Reading state information... Done
  5. The following extra packages will be installed:
  6. aufs-tools
  7. Suggested packages:
  8. btrfs-tools debootstrap lxc rinse
  9. The following NEW packages will be installed:
  10. aufs-tools docker.io
  11. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  12. Need to get 3,818 kB of archives.
  13. After this operation, 22.5 MB of additional disk space will be used.
  14. Do you want to continue? [Y/n] Y
step3&4:

点击(此处)折叠或打开

  1. root@localhost:~# ln -sf /usr/bin/docker.io /usr/local/bin/docker
  2. root@localhost:~# sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io
  3. root@localhost:~#

step5:

点击(此处)折叠或打开

  1. root@localhost:~# docker run -i -t ubuntu /bin/bash
  2. Unable to find image 'ubuntu' locally
  3. Pulling repository ubuntu
  4. b9e56c8f2cf5: Pulling dependent layers
  5. 463ff6be4238: Pulling dependent layers
  6. ba5877dc9bec: Pulling dependent layers
  7. 195eb90b5349: Pulling dependent layers
  8. 3db9c44f4520: Pulling dependent layers
  9. 6ef6f1a66de1: Pulling dependent layers
  10. c5881f11ded9: Pulling dependent layers
  11. 511136ea3c5a: Download complete



阅读(1074) | 评论(0) | 转发(0) |
0

上一篇:Python 中groupdict用法

下一篇:Nginx 变量

给主人留下些什么吧!~~