Sign inSign up

11notes/wordpress

By 11notes

•Updated almost 8 years ago

modified wordpress docker container to run as normal user (non-root)

Image
0

1.6K

11notes/wordpress repository overview

⁠docker-wordpress

Dockerfile to create and run your own wordpress process inside a debian docker container.

⁠docker volumes

/var/www/html

Contains: Wordpress files

⁠docker build

docker build -t YOURNAME/YOURCONTAINER:YOURTAG .

⁠docker run

docker run --name wordpress \
    -v volume-www:/var/www/html \
    -d 11notes/wordpress:5.0.0-php7.2-apache

⁠difference between wordpress:5.0.0-php7.2-apache

ports & uid/gid:

    replaced port 80 with 8080 and 443 with 8443 (non-root)
    uid:gid both set to static 1000:1000

⁠build with

⁠tips

Tag summary

Content type

Image

Digest

Size

139.5 MB

Last updated

almost 8 years ago

docker pull 11notes/wordpress