Howto install docker rhel8: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 10: Line 10:
install docker-compose:
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
  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

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

fix permissions:

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