Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.24 KB

File metadata and controls

51 lines (38 loc) · 1.24 KB

Install Docker Engine and Compose

Install Docker Engine on CentOS 7

# yum install -y yum-utils \
    device-mapper-persistent-data \
    lvm2
# yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
# yum install docker-engine
# service docker start

Install Docker Engine on Fedora

# dnf -y install dnf-plugins-core
# dnf config-manager \
    --add-repo \
    https://download.docker.com/linux/fedora/docker-ce.repo
# dnf install docker-engine
# service docker start

Setup for non-root account

If you use docker with non-root account, add the account to "docker" group (usermod below is effective after re-login tho the account).

# usermod -a -G docker <you-account-name>

Install Docker Compose on CentOS 7 or Fedora

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

Docker Official Installation document

See https://docs.docker.com/compose/install/ and https://docs.docker.com/engine/installation/ for more detail and up-to-date installation document of Docker Engine and Compose.