Answers for "docker create centos 7 container"

1

docker on centos7

# To install docker on centos 7 or SL7
# From https://docs.docker.com/engine/install/centos/
sudo yum install -y yum-utils
sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
# From https://stackoverflow.com/questions/45272827/docker-ce-on-rhel-requires-container-selinux-2-9
# You must add the latest container-selinux form http://mirror.centos.org/centos/7/extras/x86_64/Packages/
# This version is correct as of 11-3-2020:
sudo yum install -y \
    http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm
# Now you can continue w/ the Docker installation
sudo yum install -y docker-ce docker-ce-cli containerd.io
# To start and check the version
sudo systemctl start docker
sudo systemctl enable docker
sudo docker -v
Posted by: Guest on November-03-2020
0

centos 7 install docker compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Posted by: Guest on April-20-2020

Code answers related to "docker create centos 7 container"

Python Answers by Framework

Browse Popular Code Answers by Language