Skip to content
Kauri edited this page Mar 17, 2017 · 7 revisions

Welcome to the CentOS-Dockerfiles wiki!

Building / updating image

Build new image

manual - https://docs.docker.com/engine/reference/commandline/build/#tag-image-t

docker build -t managlea/centos-php:latest -t managlea/centos-php:7.x.x .

Tag image

docker tag managlea/centos-php managlea/centos-php:latest

Push to dockerhub

docker push managlea/centos-php

Usage

Mount data

https://docs.docker.com/userguide/dockervolumes/#mount-a-host-directory-as-a-data-volume

docker run -d -i -v /Users/kauri/Vagrant/lnpp/srv/www:/home/web managlea/centos-php