Skip to content

Instantly share code, notes, and snippets.

@gscattolin
Last active June 6, 2021 04:47
Show Gist options
  • Save gscattolin/49e2145da97ff43db55fbfed20a45d4c to your computer and use it in GitHub Desktop.
Save gscattolin/49e2145da97ff43db55fbfed20a45d4c to your computer and use it in GitHub Desktop.
Install docker on Centos rel 7 offline
wget --content-disposition https://nct.onlyoffice.com/sh/Xsy # Hello world image
wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-1.el7_6.noarch.rpm
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-19.03.5-3.el7.x86_64.rpm
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-cli-19.03.5-3.el7.x86_64.rpm
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-selinux-17.03.3.ce-1.el7.noarch.rpm
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
sudo rpm -i container-selinux-2.107-1.el7_6.noarch.rpm
sudo rpm -i docker-ce-19.03.5-3.el7.x86_64.rpm docker-ce-cli-19.03.5-3.el7.x86_64.rpm docker-ce-selinux-17.03.3.ce-1.el7.noarch.rpm containerd.io-1.2.6-3.3.el7.x86_64.rpm
sudo systemctl start docker
sudo docker load -i hello-world.docker
sudo docker run hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment