docker-container: set UsernsMode only when needed
Set `UsernsMode="host"` only when the daemon is running in userns-remapping mode.
Fix issue 561
The issue will be also fixed in moby/moby PR 43084 (Docker 20.10.13).
This buildx PR helps users of old releases of Docker.
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 5f8600f098
)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
pull/890/head
parent
05846896d1
commit
72af779e8a
Loading…
Reference in New Issue