Sign inSign up

mgardellini/docker-centos6

By mgardellini

•Updated about 11 years ago

Image
0

882

mgardellini/docker-centos6 repository overview

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

Tag summary

Content type

Image

Digest

sha256:81f179a60…

Size

186.7 MB

Last updated

about 11 years ago

docker pull mgardellini/docker-centos6