Unable to find user root: no matching entries in passwd file in Docker

前端 未结 3 1568
半阙折子戏
半阙折子戏 2020-12-17 17:07

I have containers for multiple Atlassian products; JIRA, Bitbucket and Confluence. When I\'m trying to access the running containers I

相关标签:
3条回答
  • 2020-12-17 17:30

    You can use this command to access to the container with root user:

    docker exec -u 0 -i -t {container_name_or_hash} /bin/bash

    try debug with that. i think the script maybe remove or disable root user.

    0 讨论(0)
  • 2020-12-17 17:31

    Its a Long standing issue, duplicated on my old version 1.10.3 to at least 1.17

    As mentioned by @sorin the the docker forum says Running docker stop and then docker start fixes the problem but is hardly a long-term solution...

    The docker exec -u 0 -i -t {container_name_or_hash} /bin/bash solution also in the same forum post mentioned here by @ObranZoltan might work for you, but does not work for many. See my output below

    $ sudo docker exec -u 0 -it berserk_nobel /bin/bash 
    exec: "/bin/bash": stat /bin/bash: input/output error
    
    0 讨论(0)
  • 2020-12-17 17:35

    This issue is caused by a docker engine bug but which is tracked privately, Docker is asking users to restart the engine!

    It seems that the bug is likely to be older than two years!

    https://success.docker.com/article/ucp-health-checks-fail-unable-to-find-user-nobody-no-matching-entries-in-passwd-file-observed

    https://forums.docker.com/t/unable-to-find-user-root-no-matching-entries-in-passwd-file/26545/7

    ... what can I say, someone is doing his best to get more funding.

    0 讨论(0)
提交回复
热议问题