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:
Content type
Image
Digest
sha256:81f179a60…
Size
186.7 MB
Last updated
almost 11 years ago
docker pull mgardellini/docker-centos6