Howto install docker rhel8: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
(Created page with "install repo: dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo install docker latest version: dnf install docker-ce --nobest -y start an...")
 
No edit summary
Line 8: Line 8:
verify installed docker version:
verify installed docker version:
  docker --version
  docker --version
install docker-compose:
curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

Revision as of 18:41, 13 January 2021

install repo:

dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

install docker latest version:

dnf install docker-ce --nobest -y

start and enable docker service:

systemctl start docker
systemctl enable docker

verify installed docker version:

docker --version

install docker-compose:

curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose