References:
OS: Oracle Linux 9.5 clean environment (Server GUI mode)
Below are the commands to install docker-ce and related packages over the internet:
## optional ## dnf update -y # add repo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo # need to replace version # sudo sed -i 's/$releasever/9/g' /etc/yum.repos.d/docker-ce.repo # install docker dnf install -y docker-ce containerd.io docker-buildx-plugin docker-ce-cli docker-ce-rootless-extras docker-compose-plugin docker-scan-plugin systemctl start docker systemctl enable docker # add soft link to make docker-compose exist, you can use 'docker compose' or 'docker-compose' sudo ln -s /usr/libexec/docker/cli-plugins/docker-compose /usr/bin/docker-compose
Finally, use the command 'docker info' to view the overall status of the docker installation
Comments
0 comments
Please sign in to leave a comment.