docker status

Install Docker 20 on Centos Stream v8

  1. Uninstall old versions

     sudo yum remove docker \
                      docker-client \
                      docker-client-latest \
                      docker-common \
                      docker-latest \
                      docker-latest-logrotate \
                      docker-logrotate \
                      docker-engine
  2. Set up the repository

     sudo yum install -y yum-utils
    
     sudo yum-config-manager \
        --add-repo \
        https://download.docker.com/linux/centos/docker-ce.repo
  3. Install Docker Engine

     sudo yum install docker-ce docker-ce-cli containerd.io
  4. If you get an error with podman and buildha packages

#Try uninstalling these:

sudo yum erase podman buildha 

# and then again:
sudo yum install docker-ce docker-ce-cli containerd.io

     5. Start Docker

$ systemctl start docker

# see the version

$ docker -v
Docker version 20.10.10, build b485636

 

For more details, go to https://docs.docker.com/engine/install/ for detailed instructions.

Leave a Reply

Your email address will not be published. Required fields are marked *