Open geimer opened 5 years ago
Could not reproduce. Do you use any special daemon configuration or build options?
I'm using the Docker Debian package with this daemon configuration:
$ cat /etc/docker/daemon.json
{
"default-ulimits": {
"core": {
"Name": "core",
"soft": 0,
"hard": 0
},
"memlock": {
"Name": "memlock",
"soft": 1048576,
"hard": 1048576
},
"nofile": {
"Name": "nofile",
"soft": 512,
"hard": 512
}
},
"icc": false,
"iptables": true,
"live-restore": true,
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "5"
},
"no-new-privileges": true,
"storage-driver": "overlay2",
"userland-proxy": false,
"userns-remap": "default"
}
With Docker version 18.09.1 build 4c52b90, the following simple Dockerfile
fails for me with
chfn: PAM: System error
when using BuildKit:However, it works fine with the "legacy builder":
Not sure whether https://github.com/moby/moby/issues/6345 is related, as the failure occurs even if the new user does not exist on the host system, but maybe the root cause is similar?