导航
- docker概念
- 手动从镜像运行一个容器
- 应用dockerfile打包镜像
- 应用compose部署多容器利用
- 给docker加上数据长久
- docker在服务器部署
- docker继续集成和部署
docker在服务器部署
后面的文章也写过对于服务器怎么部署的
详见: 应用compose部署多容器利用
上面是一个装置docker的sh配置脚本
# 官网装置指南 Ubuntu 版本
# https://docs.docker.com/install/linux/docker-ce/ubuntu
sudo apt update
# docker 的源是 https,所以装置这些软件用于反对 https 的 apt 仓库
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
# 增加 Docker 的官网 GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# 设置官网 Docker 源
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
# 装置 Docker
sudo apt update
sudo apt install -y docker-ce
# 如果你想验证 Docker 装置好了,能够运行一个 hello-world 容器
# sudo docker run hello-world
发表回复