Django项目部署(一) docker 安装

安装软件包

  • yum install -y yum-utils

配置阿里云加速器

安装docker

  • yum install -y docker-ce

配置镜像源

  • vi /etc/docker/daemon.json
{
    "registry-mirrors":["https://zx3rmp40.mirror.aliyuncs.com/cn-hangzhou/instances/mirrors"]
}

命令

  • 版本:docker version
  • 启动:systemctl start docker
  • 停止:systemctl stop docker
  • 重启:systemctl restart docker
  • 查看状态:systemctl status docker
  • 开机自启动:systemctl enable docker
  • 搜索镜像:dockers search name
  • 拉取镜像:dockers pull name:tag
  • 查看镜像:docker images
#python开发工程师#
全部评论

相关推荐

缒梦&独舞:这家公司是这样的,去年给我实习offer了,不过也是面着玩儿的,他周六还要去做公益志愿活动
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务