美文网首页
Docker深度学习1

Docker深度学习1

作者: 小小怪吃吃吃 | 来源:发表于2019-03-08 15:25 被阅读0次

dockerfile 构建镜像
docker run 启动容器
docker-compose 启动服务

Docker Compose是一个用来定义和运行复杂应用的Docker工具。一个使用Docker容器的应用,通常由多个容器组成。使用Docker Compose不再需要使用shell脚本来启动容器。
Compose 通过一个配置文件来管理多个Docker容器,在配置文件中,所有的容器通过services来定义,然后使用docker-compose脚本来启动,停止和重启应用,和应用中的服务以及所有依赖服务的容器,非常适合组合使用多个容器进行开发的场景。

ubuntu x64 在安装docker-ce的过程中,参考了官方的安装文档https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1

前面执行的比较顺利,但在进行
$sudo apt-get install docker-ce
一步操作时,出现了如下错误:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'docker-ce' has no installation candidate
提示说docker-ce包没有找到。

解决方法
手动加入源

cd /etc/apt/sources.list.d sudo vi docker.list
加入以下信息:

deb https://download.docker.com/linux/ubuntu zesty edge
更新apt-get,并进行安装

sudo apt updatesudo apt install docker-ce

相关文章

网友评论

      本文标题:Docker深度学习1

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