podman: The official Nginx container no longer works on Podman 2.0.0-dev
/kind bug
Description
The official Nginx container no longer works on Podman 2.0.0-dev
Here is a test that shows it is working with Podman 1.9.3:
$ podman version
Version: 1.9.3
RemoteAPI Version: 1
Go Version: go1.14.2
OS/Arch: linux/amd64
$ podman run --rm --name nginx -v tmp:/usr/share/nginx/html:ro nginx
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
Here is a test that shows it is not working with 2.0.0-dev:
$ podman version
Version: 2.0.0-dev
API Version: 1
Go Version: go1.14.3
Git Commit: 3f026eb6a682a68e69f9376b72157a8f084e575c
Built: Fri Jun 12 11:04:21 2020
OS/Arch: linux/amd64
$ podman run --rm --name nginx -v tmp:/usr/share/nginx/html:ro nginx
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied)
2020/06/12 16:05:12 [emerg] 1#1: open() "/var/log/nginx/error.log" failed (13: Permission denied)
The Nginx container symlinks access.log and error.log to stdout and stderr respectively which is most likely the reason why it is not working with Podman 2.0.0-dev
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (13 by maintainers)
Thanks I fixed my original comment.