Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 813 Bytes

README.md

File metadata and controls

43 lines (25 loc) · 813 Bytes

Docker base

docker pull ubuntu:14.04 

docker run -it -d --name web ubuntu:14.04

docker attach web

apt update

apt install -y git

cd ~

git clone http://www.github.com/mehmetsoylucom/docker-base

cd docker-base

bash base-install.sh

Answer mysql password questions. And exit with ctrl+d from docker container.

Create a locally docker image for backup

docker commit web base14

docker run -it -d -P --name base14 -v /var/www/codes/root:/var/www/codes/root base14

Use this command in host when you need docker container ip.

docker network inspect bridge

Publish path is public directory in root for rails or sinatra. ( /var/www/codes/root/public in virtualhost )

Do not forget. You have to install gems with bundler in docker container.

Have a nice coding...