-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
brew cask install docker |