Because of my blog that the application is installed on a Linux system, similar to redis, MQ are based docker mounted, so wrote a blog a docker's installation.
Ubuntu installation docker
1, uses scripts to install docker-ce
curl -fsSL get.docker.com -o get-docker.sh
sudo sh get-docker.sh --mirror Aliyun
2, start docker CE
sudo systemctl enable docker
sudo systemctl start docker
3, the accelerator modify the image
In /etc/docker/daemon.json write the following in ( if the file does not exist, please create a new file )
vi /etc/docker/daemon.json
{
"registry-mirrors": [
"https://registry.docker-cn.com"
]
}
4, restart the docker services
systemctl start docker
docker successful installation!
Installation Docker Compose
Must be installed docker, you can install docker-compose
1, package installation binary
curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-uname -s
-uname -m
> /usr/local/bin/docker-compose
curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
2, add permissions to run
chmod +x /usr/local/bin/docker-compose
3, the installation is successful
View the version number
docker-compose version
4, the binary packages installed, delete the binary files.
$ sudo rm /usr/local/bin/docker-compose
docker-compose the installation is complete!