Skip to content
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

code-3.1运行后/proc/self被修改 #8

Closed
kasheemlew opened this issue Aug 22, 2017 · 5 comments

Comments

@kasheemlew
Copy link

commented Aug 22, 2017

code-3.1运行./mydocker run -ti ./bin/sh
之前

screen shot 2017-08-22 at 14 01 48

运行之后

screen shot 2017-08-22 at 14 02 42

screen shot 2017-08-22 at 14 04 13

然后要重启才能恢复正常。

求解答。感谢!

@iarwen

This comment has been minimized.

Copy link

commented Aug 22, 2017

Because you have gone into a new namespace after run ./mydocker run -ti ./bin/sh,type exit will back to your host`s namespace.

@kasheemlew

This comment has been minimized.

Copy link
Author

commented Aug 22, 2017

已经执行过exit了,再exit就退出终端了 @iarwen

@iarwen

This comment has been minimized.

Copy link

commented Aug 22, 2017

# sudo mount -t proc proc /proc have a try~

@kasheemlew

This comment has been minimized.

Copy link
Author

commented Aug 22, 2017

解决了。谢谢。

@liuliqiang

This comment has been minimized.

Copy link

commented Oct 27, 2018

@iarwen @xianlubird

Is there better way to fixed this question?

I should use mount -t proc proc /proc every time after try to run mydocker run command, i don't think it's a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.