- Uninstall old versions.
sudo yum remove -y docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine
- Install required packages
sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
- Set up the stable repository
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
- Install docker-ce
sudo yum -y install docker-ce
-
Collect the config files here include: ceph_conf(ceph config), proxysql.cnf(proxysql config), rados.so(rados read and write), security_settings.py(django settings)
-
Build
docker build -t webserver_web -f Dockfile_web .
docker build -t webserver_db -f Dockfile_db .
- Docker-compose in single node
docker-compose up -d