Step 0: prerequisites
- download docker binary
- download docker-compose binary
- download laradock
- download laradock images
- your application code, for example, dgiot.xy-jit.cc.zip
Step 1: install docker
1 | tar xzf docker-17.05.0-ce.tgz |
Step 2: start the docker daemon
1 | sudo dockerd & |
Step 3: install docker-compose
1 | sudo cp docker-compose-Linux-x86_64 /usr/local/bin/docker-compose |
Step 4: load docker images
1 | sudo docker load -i images/tianon-true-latest.tar |
Step 5: prepare your application code
If unzip
is not installed, you can yum install unzip-6.0-15.1.el7.x86_64.rpm
1 | unzip dgiot.xy-jit.cc.zip |
Step 6: start your application
1 | docker-compose up -d nginx |