Get Docker CE for CentOS

# 1. Install required packages.
$ sudo yum install -y yum-utils device-mapper-persistent-data lvm2
# 2. Use the following command to set up the stable repository.
$ sudo yum-config-manager \
    --add-repo \
# 3. Update the yum package index.
$ sudo yum makecache fast
# 4. Install the latest version of Docker CE
$ sudo yum install docker-ce
# 5. Start Docker
$ sudo systemctl start docker

On production systems, you should install a specific version of Docker CE instead of always using the latest.

$ yum list docker-ce.x86_64  --showduplicates | sort -r
$ sudo yum install docker-ce-<VERSION>

Installing Command Completion for Bash.

# 1. Make sure bash completion is installed. 
$ yum install -y bash-completion
# 2. Install docker completion.
$ sudo curl -L -o /etc/bash_completion.d/docker
# 3. Make docker completion to be available.
$ sudo . /etc/profile

RE: Get Docker CE for CentOS

RE: Command-line completion

Install Docker Compose

Run this command to download Docker Compose, replacing $dockerComposeVersion with the specific version of Compose you want to use:

sudo curl -L$dockerComposeVersion/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

For example, to download Compose version 1.14.0, the command is:

sudo curl -L`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

Use the latest Compose release number in the download command.

Apply executable permissions to the binary:

sudo chmod +x /usr/local/bin/docker-compose

Installing Command Completion for Bash:

sudo curl -L -o /etc/bash_completion.d/docker-compose

RE: Install Docker Compose

RE: Compose repository release page on GitHub

RE: Command-line completion