Docker problem with namespaces - container id 110090219 cannot be matched to host id
when i try to pull the docker image to the machine (which i didn't rip) i get the error
failed to register layer: ApplyLayer exit status 1 stdout: stderr: Container ID 110088952 cannot be mapped to a host ID.
I found a troubleshooting page that says this error is included in the usernamespace function and it requires the container id to be between 0 and 65536. I checked with docker info
and it looks like:
Security Options:
userns
My question is, how do I get around this problem? I have no idea how to make sure the "container IDs are in the range 0 and 65536" ... They suggest including namespaces on the computer I create the image, but the command they suggest doesn't work on my mac:
$ sudo docker daemon --userns-remap=default
docker: 'daemon' is not a docker command.
See 'docker --help'.
source to share
Not sure if this is the right way, but I was able to do it by changing /etc/subgid
and etc/subuid
it helped me - if you specify default
in userns-remap
, it will create a user with a name dockremap
and automatically add entries to /etc/subgid
and /etc/subgid
.
More on this here , but it is important that the container id is in the valid uid range. if not, change the range.
source to share