Skip to content

Conversation

tianon
Copy link
Member

@tianon tianon commented Jan 31, 2019

The issue speaks for itself:

$ docker run --rm php:apache ls -ld /var/www/html
drwxrwxrwx 2 www-data www-data 4096 Jan 22 21:56 /var/www/html

$ docker run --rm php:fpm ls -ld /var/www/html
drwxr-xr-x 2 root root 4096 Jan 22 22:10 /var/www/html

This is the root cause of docker-library/wordpress#368 (wordpress:apache works fine, wordpress:fpm does not).

I've verified this by building this, then building WordPress on top of it, and running both wordpress:apache and wordpress:fpm based on this change with -u 33:33 --sysctl net.ipv4.ip_unprivileged_port_start=0 and both started successfully. 👍 🤘

Fixes docker-library/wordpress#368

The issue speaks for itself:

```console
$ docker run --rm php:apache ls -ld /var/www/html
drwxrwxrwx 2 www-data www-data 4096 Jan 22 21:56 /var/www/html

$ docker run --rm php:fpm ls -ld /var/www/html
drwxr-xr-x 2 root root 4096 Jan 22 22:10 /var/www/html
```
@tianon
Copy link
Member Author

tianon commented Jan 31, 2019

See also #755, #754, #745, #743

@yosifkit yosifkit merged commit fab49d4 into docker-library:master Feb 1, 2019
@yosifkit yosifkit deleted the arbitrary-user-AGAIN branch February 1, 2019 00:47
tianon added a commit to infosiftr/stackbrew that referenced this pull request Feb 1, 2019
- `golang`: Alpine 3.9 (docker-library/golang#262)
- `haproxy`: Alpine 3.9 (docker-library/haproxy#82)
- `httpd`: Alpine 3.9 (docker-library/httpd#124)
- `mariadb`: 10.0.38, 5.5.63
- `memcached`: Alpine 3.9 (docker-library/memcached#45)
- `mysql`: 8.0.15
- `openjdk`: 13-ea+6, 12-ea+30, Alpine 3.9 (docker-library/openjdk#276)
- `php`: axe 5.6 (EOL), consistent `/var/www/html` permissions (docker-library/php#787)
- `postgres`: Alpine 3.9 (docker-library/postgres#550)
- `rabbitmq`: 3.7.11, 3.8.0-beta.2
- `redis`: Alpine 3.9 (redis/docker-library-redis#183)
- `ruby`: Alpine 3.9 (docker-library/ruby#262)
- `wordpress`: `chown` of `.` in very certain narrow cases (docker-library/wordpress#371)
Firefishy pushed a commit to Firefishy/official-images that referenced this pull request Feb 18, 2019
- `golang`: Alpine 3.9 (docker-library/golang#262)
- `haproxy`: Alpine 3.9 (docker-library/haproxy#82)
- `httpd`: Alpine 3.9 (docker-library/httpd#124)
- `mariadb`: 10.0.38, 5.5.63
- `memcached`: Alpine 3.9 (docker-library/memcached#45)
- `mysql`: 8.0.15
- `openjdk`: 13-ea+6, 12-ea+30, Alpine 3.9 (docker-library/openjdk#276)
- `php`: axe 5.6 (EOL), consistent `/var/www/html` permissions (docker-library/php#787)
- `postgres`: Alpine 3.9 (docker-library/postgres#550)
- `rabbitmq`: 3.7.11, 3.8.0-beta.2
- `redis`: Alpine 3.9 (redis/docker-library-redis#183)
- `ruby`: Alpine 3.9 (docker-library/ruby#262)
- `wordpress`: `chown` of `.` in very certain narrow cases (docker-library/wordpress#371)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants