ITPub博客

首页 > 云计算 > > 以指定用户名执行 docker run 的问题

以指定用户名执行 docker run 的问题

作者:highhand 时间:2019-09-16 09:19:30 0 删除 编辑

以 docker run --user $(whoami) nginx 运行容器,会出现下面的错误:

docker: Error response from daemon: linux spec user: unable to find user xxxx: no matching entries in passwd file.

请问如何解决?

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/810/viewspace-3143228/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2015-11-11

  • 博文量
    1479
  • 访问量
    30506