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

docker-bash won't run on boot2docker since bash is missing #102

Closed
amjibaly opened this issue Jun 26, 2014 · 5 comments
Closed

docker-bash won't run on boot2docker since bash is missing #102

amjibaly opened this issue Jun 26, 2014 · 5 comments
Milestone

Comments

@amjibaly
Copy link

This new docker-bash feature looks really cool, would it be possible to get this to run in boot2docker however? If it's pretty easy to install bash in boot2docker then maybe it's not worth it but I'm not sure what that would take.

@kingdonb
Copy link
Collaborator

I would hazard that docker-bash doesn't really need bash, and you could
just change it to use whatever shell is actually provided by boot2docker...
it's a very small script.

It's also worth looking at nsenter, I heard about this today:
http://jpetazzo.github.io/2014/06/23/docker-ssh-considered-evil/

"The short version is: with nsenter, you can get a shell into an existing
container, even if that container doesn't run SSH or any kind of
special-purpose daemon."

On Thu, Jun 26, 2014 at 2:15 PM, amjibaly [email protected] wrote:

This new docker-bash feature looks really cool, would it be possible to
get this to run in boot2docker however? If it's pretty easy to install bash
in boot2docker then maybe it's not worth it but I'm not sure what that
would take.


Reply to this email directly or view it on GitHub
#102.

@amjibaly
Copy link
Author

+1 for nsenter, that looks like a really good approach.

@FooBarWidget
Copy link
Member

nsenter looks really good. lxc-attach stopped working since Docker 0.9 but it looks like nsenter does the same thing.

That said, if your concern is boot2docker, then nsenter won't work either.

@FooBarWidget
Copy link
Member

Closing this issue. Discussion should be continued on #103.

@FooBarWidget
Copy link
Member

Fixed in commit 25e8b1c.

@FooBarWidget FooBarWidget added this to the 0.9.12 milestone Jul 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants