美文网首页Docker容器Awesome Docker
CentOS 6.5 64 bit 安装 docker

CentOS 6.5 64 bit 安装 docker

作者: xiaojianxu | 来源:发表于2017-03-03 17:20 被阅读205次

// 搜索 epel 依赖
# yum search epel

// 选择需要安装的依赖包,name 就是包名
# yum install 'name'

# sudo yum -y remove docker

# sudo yum -y install docker-io

// 启动 Docker Deamon
# sudo service docker start

// 设置 Docker Deamon 开机运行
# sudo chkconfig docker on

// 验证 Docker Deamon
# docker info

Containers: 0
Images: 0
Storage Driver: devicemapper
 Pool Name: docker-253:1-397196-pool
 Pool Blocksize: 65.54 kB
 Backing Filesystem: extfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 305.7 MB
 Data Space Total: 107.4 GB
 Data Space Available: 18.9 GB
 Metadata Space Used: 729.1 kB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.147 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.117-RHEL6 (2016-08-15)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 2.6.32-431.el6.x86_64
Operating System: <unknown>
CPUs: 1
Total Memory: 996.5 MiB
Name: instance-a057rbeu
ID: Q3DH:HF5K:LPKE:O77Q:GDZ5:JM56:U6S6:TDA6:H4NH:GFH2:PZ4P:KM2S

// 获取镜像
# docker pull daoclound.io/centos:6

// 查看镜像列表
# docker images

// 重启 docker

// 运行镜像,注意镜像名,必须要与前面拉取的名字保持一致
# sudo docker run -i -t daoclound.io/centos:6 /bin/bash

thunder://QUFmdHA6Ly9keWdvZDE6ZHlnb2QxQGQwMzYuZHlnb2Qub3JnOjEyMTEvJUU3JUJFJThFJUU1JTlCJUJEJUU1JUJFJTgwJUU0JUJBJThCLlslRTQlQjglQUQlRTglOEIlQjElRTUlOEYlOEMlRTUlQUQlOTcuMTAyNCVFNSU4OCU4NiVFOCVCRSVBOCVFNyU4RSU4N10vWyVFNyU5NCVCNSVFNSVCRCVCMSVFNSVBNCVBOSVFNSVBMCU4Mnd3dy5keTIwMTgubmV0XSVFNyVCRSU4RSVFNSU5QiVCRCVFNSVCRSU4MCVFNCVCQSU4QkJEJUU0JUI4JUFEJUU4JThCJUIxJUU1JThGJThDJUU1JUFEJTk3LnJtdmJaWg==

相关文章

网友评论

    本文标题:CentOS 6.5 64 bit 安装 docker

    本文链接:https://www.haomeiwen.com/subject/toergttx.html