docker
宫九
私信获取蟹堡王秘方。
展开
-
Docker(ubuntu18.0.4LTS),定义一个容器
首先我们选择一个空目录,我现在所在的位置是/usr/local/src 我们一共需要创建三个文件分别是 app.py :实例代码 requirements.txt : Python所需要的类库 Dockerfile: docker环境配置 首先我们vim Dockerfile, # 将Python作为父环境,也就是容器的主要环境 FROM python:2.7-slim #...翻译 2019-03-29 14:34:22 · 174 阅读 · 0 评论 -
Docker安装(ubuntu18.04LTS)
先删除旧版本docker避免不兼容 (centos 使用yum) sudo apt-get remove docker docker-engine docker.io containerd runc 更新apt sudo apt-get update 允许使用https sudo apt-get install \ apt-transport-https \ ...翻译 2019-03-29 13:44:59 · 966 阅读 · 0 评论