Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockfile构建需要升级Docker版本,提供下centos的升级方式 #16

Closed
rayepeng opened this issue Apr 3, 2023 · 1 comment
Closed

Comments

@rayepeng
Copy link
Contributor

rayepeng commented Apr 3, 2023

卸载旧版本的docker

sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine

安装社区版

sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io

安装

sudo yum install docker-ce-<VERSION_STRING> docker-ce-cli-<VERSION_STRING> containerd.io

启动服务

sudo systemctl start docker

升级到最新版的docker就能构建Dockerfile了,另外个人更喜欢用 docker-compose.yml 的方式,提供一份

version: '3'
services:
  watchvuln:
    build: .
    environment:
      - DINGDING_ACCESS_TOKEN=""
      - DINGDING_SECRET=""
      - WECHATWORK_KEY=""
@zema1
Copy link
Owner

zema1 commented Apr 3, 2023

我都是直接用这个一键安装,简单方便 https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/

@zema1 zema1 closed this as completed in 923e4da Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants