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
 
(2 intermediate revisions by the same user not shown)
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
fix permissions:
chmod +x /usr/local/bin/docker-compose
verify docker-compose version:
docker-compose --version

Latest revision as of 18:42, 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

fix permissions:

chmod +x /usr/local/bin/docker-compose

verify docker-compose version:

docker-compose --version