Skip to content

Commit

Permalink
Merge pull request #22 from maxwit/#20-Docker_installation
Browse files Browse the repository at this point in the history
Fixes #20: add Docker CE installation scripts for mac and CentOS
  • Loading branch information
bonnie-young authored Jan 10, 2018
2 parents 78853ae + 5867b32 commit 6e8b780
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Docker/installation/centos_ce.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/sh

# Remove old versions
yum remove docker docker-common docker-selinux docker-engine

# Set up the repository
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-config-manager --enable docker-ce-edge

#yum-config-manager --enable docker-ce-test

#yum-config-manager --disable docker-ce-edge

#yum-config-manager --disable docker-ce-test

# Install latest Docker CE
yum install -y docker-ce

# Install a specific version of Docker CE
# yum list docker-ce --showduplicates | sort -r
# yum install <FULLY-QUALIFIED-PACKAGE-NAME>

# Start Docker
systemctl start docker

# Verify
docker run hello-world
1 change: 1 addition & 0 deletions Docker/installation/mac_ee.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
brew cask install docker

0 comments on commit 6e8b780

Please sign in to comment.