-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fork/exec /bin/sh: operation not permitted exit status 1 #78
Comments
运行的容器没有root权限,加上 --privileged 参数,才能使容器拥有root权限。 |
|
如果要在一个ubuntu的docker容器中运行的mydocker,需要--privileged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Q1:请问项目中代码的开发环境是什么?
我使用 mac 开发,按照示例中的代码编写时,发现有些API是不兼容的。所以我采用了 remote-dev 的方式开启了一个容器,在容器中开发,这样 API 的操作系统不兼容的问题解决了。
我容器开发环境如下:go1.15.3 linux/amd64
Q2:为什么会出现 fork/exec /bin/sh: operation not permitted exit status 1?
执行
报错:
fork/exec /bin/sh: operation not permitted exit status 1
The text was updated successfully, but these errors were encountered: