Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
etc
README.md

README.md

Docker Install guide

yum install -y yum-utils device-mapper-persistent-data lvm2  
  
wget https://download.docker.com/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repo  
  
yum install -y docker-ce  
  
systemctl enable docker && systemctl start docker  
    
#docker machine  
curl -L https://github.com/docker/machine/releases/download/v0.15.0/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine && chmod +x /tmp/docker-machine && sudo cp /tmp/docker-machine /usr/local/bin/docker-machine

base=https://raw.githubusercontent.com/docker/machine/v0.14.0  
for i in docker-machine-prompt.bash docker-machine-wrapper.bash docker-machine.bash  
do  
  sudo wget "$base/contrib/completion/bash/${i}" -P /etc/bash_completion.d  
done  
  
#docker compose  
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose  
sudo chmod +x /usr/local/bin/docker-compose  

sudo curl -L https://raw.githubusercontent.com/docker/compose/1.22.0/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose  
  
  
# Optional install portainer  
docker volume create portainer  
docker run -d -p 127.0.0.1:6041:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer:/data portainer/portainer