Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

/init: permission denied #9

Closed
bofeng opened this issue Sep 1, 2014 · 1 comment
Closed

/init: permission denied #9

bofeng opened this issue Sep 1, 2014 · 1 comment

Comments

@bofeng
Copy link

bofeng commented Sep 1, 2014

hi,
I use ubuntu and I pull the image from docker:

docker pull yelp/dockersh

Then I run this:

docker run -v /usr/local/bin:/target yelp/dockersh

And I edit my /etc/dockersh file:

[dockersh]
imagename=busybox
shell=/bin/ash
usercwd=/

When I run "dockersh" as root:

$ dockersh
could not start container: exit status 1:
fc899bc0609f8549fce68c4fd9eadf677e6622a03af8b453d76b465e7860e55e
2014/09/01 15:43:34 Error response from daemon: Cannot start container fc899bc0609f8549fce68c4fd9eadf677e6622a03af8b453d76b465e7860e55e: exec: "/init": permission denied

It gave me the error above, is there I did something wrong? Thank you very much!

Add:
Here is my docker version information:
Client version: 1.2.0
Client API version: 1.14
Go version (client): go1.3.1
Git commit (client): fa7b24f
OS/Arch (client): linux/amd64
Server version: 1.2.0
Server API version: 1.14
Go version (server): go1.3.1

@bofeng
Copy link
Author

bofeng commented Sep 1, 2014

solved by using
"/usr/local/bin/dockersh" instead of just "dockersh"

@bofeng bofeng closed this as completed Sep 1, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant