Skip to content

mssoylu/docker-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

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...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages