Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

docker-centos6

A container to be used for showing the power of Docker to my colleagues

To start the container, first run a mysql container (at https://github.com/mgardellini/docker-mysql):

docker build --rm -t mgardellini/centos:mysql .

docker run -t -i --name db -p 3306:3306 mgardellini/centos:mysql /run

Then run and link this one:

docker build --rm -t mgardellini/centos:centos6 .

run --rm -t -i -p 8080:8080 --name web --link db:db -v /data mgardellini/centos:centos6 /run

Note that a data dir is mounted in the centos container
You can access the deployed webapp at:

http://localhost:8080/simple-api-1.0/stuff

http://localhost:8080/simple-api-1.0/stuff/1

Docker Pull Command
Owner
mgardellini
Source Repository