8000 Dockfile构建需要升级Docker版本,提供下centos的升级方式 · Issue #16 · zema1/watchvuln · GitHub
[go: up one dir, main page]

Skip to content

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

Closed

Description

@rayepeng

卸载旧版本的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=""

Activity

  1. zema1 commented on Apr 3, 2023

    @zema1
    Owner

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

  2. added a commit that references this issue on Mar 4, 2024
    923e4da
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0