表現(xiàn)
在對容器執(zhí)行某個(gè)操作退出容器后,再次對容器執(zhí)行操作會(huì)報(bào)錯(cuò)
unable to find user root: no matching entries in passwd file
解決辦法:重啟相關(guān)容器
1.docker restart container_name
2.某些情況下使用restart命令還是報(bào)錯(cuò)异赫,可以先停掉docker服務(wù)兼搏,然后再start
docker stop/start container_name