This wiki was updated to MediaWiki 1.37. If you notice any issues, please report them to admin[at]


Jump to: navigation, search

openSUSE Nginx Container Image


This container image contains the latest nginx web server from openSUSE Tumbleweed.




This container image requires a local data directory, by default /srv/nginx. During the first start, if no configuration is provided, the container will create a default configuration:

  • /srv/nginx/etc contains the configuration normally can be found in /etc/nginx
  • /srv/nginx/htdocs contains the files which normally can be found below /srv/www/htdocs


 # podman run -d --rm -v /srv/nginx/etc:/etc/nginx -v /srv/nginx/htdocs:/srv/www/htdocs --name nginx -p 80:80/tcp -p 443:443/tcp

It's possible to only override nginx.conf

 # podman run -d --rm -v /srv/nginx/etc/nginx.conf:/etc/nginx/nginx.conf:ro --name nginx -p 80:80/tcp -p 443:443/tcp

Reload Configuration


Systemd support

The package containers-systemd contains a service file and sysconfig file to configure and automatically start the nginx container with systemd.

 # systemctl start container-nginx