Skip to content

Instantly share code, notes, and snippets.

@chuckixia
Last active May 22, 2018 21:59
Show Gist options
  • Select an option

  • Save chuckixia/66afb24f13c7d4c6bc2d34e5b4b5a7d3 to your computer and use it in GitHub Desktop.

Select an option

Save chuckixia/66afb24f13c7d4c6bc2d34e5b4b5a7d3 to your computer and use it in GitHub Desktop.
exec: "/bin/sh": stat /bin/sh: no such file or directory (or maybe exec: "/bin/bash" ?)
Are you suffering from this cryptic error?
Are you somewhat familiar with docker but flailing around lost with what could be causing this issue?
Are you trying to export an image somewhere on docker, and import on another machine, and it seems straightforward enough?
Then what you probably did on machine was:
docker save randomimage > foo.tar
and then on the other machine
docker import foo.tar foo
and then tried to run something to figure out why broke, something like:
docker run --rm -it foo /bin/bash
Where you messed up was importing your image. You should have done:
docker load foo.tar
you dummy
brought to you by this guy:
https://github.com/moby/moby/issues/5135#issuecomment-123584597
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment