How to Install Docker, Docker-Compose and Laradock Offline

Step 0: prerequisites

Step 1: install docker

1
2
tar xzf docker-17.05.0-ce.tgz 
sudo cp docker/* /usr/bin/

Step 2: start the docker daemon

1
sudo dockerd &

Step 3: install docker-compose

1
2
sudo cp docker-compose-Linux-x86_64 /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Step 4: load docker images

1
2
3
4
sudo docker load -i images/tianon-true-latest.tar
sudo docker load -i images/laradock_nginx-latest.tar
sudo docker load -i images/laradock_php-fpm-latest.tar
sudo docker load -i images/laradock_workspace-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
2
3
4
5
6
7
unzip dgiot.xy-jit.cc.zip
cd dgiot.xy-jit.cc
sudo chmod 777 -R storage bootstrap/cache
unzip ../laradock-master.zip
mv laradock-master/ laradock
cd laradock
cp env-example .env

Step 6: start your application

1
docker-compose up -d nginx