centos7使用docker1.8.2
来源:互联网 发布:java实现短信发送代码 编辑:程序博客网 时间:2024/06/06 04:28
- yum install docker-io或curl -sSL https://get.daocloud.io/docker | sh
service docker start
如果出现[root@localhost 桌面]# service docker startStarting docker (via systemctl): Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details. [失败]则有可能是防火墙开启的原因,可先关闭防火墙:service firewalld stop
docker run hello-world
出现错误“Cannot connect to the Docker daemon. Is 'docker -d' running on this host?”网上找到解决方式:http://blog.csdn.net/xu470438000/article/details/43704469执行:yum upgrade device-mapper-libs
再次执行:docker run hello-world
INFO[0211] POST /v1.19/containers/create ERRO[0211] Handler for POST /containers/create returned error: No such image: hello-world (tag: latest) ERRO[0211] HTTP Error err=No such image: hello-world (tag: latest) statusCode=404Unable to find image 'hello-world:latest' locallyINFO[0211] POST /v1.19/images/create?fromImage=hello-world&tag=latest Pulling repository hello-worldaf340544ed62: Download complete 535020c3e8ad: Download complete Status: Downloaded newer image for hello-world:latestINFO[0258] POST /v1.19/containers/create INFO[0258] POST /v1.19/containers/7402e7645ff9349d309b2190fba0896e5b7e233c29532e64f45ddde2f60fe1e8/attach?stderr=1&stdout=1&stream=1 INFO[0258] POST /v1.19/containers/7402e7645ff9349d309b2190fba0896e5b7e233c29532e64f45ddde2f60fe1e8/start Hello from Docker.This message shows that your installation appears to be working correctly.To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bashShare images, automate workflows, and more with a free Docker Hub account: https://hub.docker.comFor more examples and ideas, visit: https://docs.docker.com/userguide/INFO[0258] POST /v1.19/containers/7402e7645ff9349d309b2190fba0896e5b7e233c29532e64f45ddde2f60fe1e8/wait
docker加速器
国内可使用daocloud提供的加速器,先安装:curl -sSL https://get.daocloud.io/daomonit/install.sh | sh -s 8d8c58ec216430cfd29537464890238105ef5bc9
可以通过运行dpkg -r daomonit 卸载主机监控程序。(Centos通过rpm -e daomonit卸载,Docker ToobBox通过docker rm -f daomonit卸载)
只需要在拉取镜像时使用 dao pull 命令即可:
dao pull ubuntu
0 0
- centos7使用docker1.8.2
- CentOS7安装docker1.9.1及简单使用
- centos7 安装 docker1.12
- CentOS7安装docker1.9.1
- centos7 yum 安装Docker1.12
- centos7上安装docker1.12
- 解决centos7 docker1.9 没有配置文件
- 在centos7上安装docker1.12
- centos7中docker1.12的配置文件
- centos7 docker1.12安装私有仓库
- Centos7下的安装Docker1.8
- docker1.8.2 在centos7 中docker info报错docker bridge-nf-call-iptables is disabled解决办法
- 13 - 在Centos7中安装Docker1.12(Docker系列)
- centos7.3下启用Docker1.12的restful接口
- centos7+ docker1.12 实践部署docker及配置direct_lvm
- centos7.2+k8s1.4.1+docker1.12集群部署
- 使用RPM包安装docker1.10.3脚本
- Docker 1.12新功能探索(1):centos7上安装docker1.12
- Android Studio增量更新(非软件自带方法)
- iOS 9 适配系列教程
- Appium junit之自定义多次执行部分case的次数以及顺序,仅运行rePublish()即可
- 开发人员使用Angular JS的五大理由
- Map 和Map.Entry的学习
- centos7使用docker1.8.2
- 常用vim设置
- datagridview隔行变色
- iOS开发-常用第三方开源框架介绍
- C#学习笔记(三)
- jQuery中bind,live,delegate与one方法的用法及区别
- Linux通用命令
- 如何学习用VBScript操作Excel
- (第三周项目4)顺序表应用