Boot2Docker Launches Ubuntu Image

I am trying to get the latest Ubuntu image running on my Windows 7 / Boot2Docker computer, but when I try to run the image, I get an error.

exec: "C:/Program Files (x86)/Git/bin/bash": stat C:/Program Files (x86)/Git/bin/bash: no such file or directory

Full error:

$ docker run -t -i ubuntu /bin/bash
exec: "C:/Program Files (x86)/Git/bin/bash": stat C:/Program Files (x86)/Git/bin/bash: no such file or directory
FATA[0000] Error response from daemon: Cannot start container 100e77a5ac95f8fb8dc55e6382e7a8cd6f946ec807e90d9efdb6fc905a046569: [8] System error: exec: "C:/Program Files (x86)/Git/bin/bash": stat C:/P
rogram Files (x86)/Git/bin/bash: no such file or directory

Is there any clue on how to get around this? Another image like standard Jenkins works fine!

Ubuntu image is correctly drawn

Running Ubuntu image after SSH:

docker@boot2docker:~$ docker run ubuntu
docker@boot2docker:~$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS
+4
source share
2 answers

This means that somehow yours $PATH(in the boot2docker session) includes a " C:/Program Files (x86)/Git/bin/" before /bin.

Check $PATHat startup docker run --rm -it ubuntu:latest.

, boot2docker ssh, docker ps , .

a docker run --rm -it ubuntu .
docker run ( ), "Exited" (. docker ps -a)

+3

, "Boot2Docker Start", , . https://docs.docker.com/installation/windows/

-, , Linux-, , .

,

Ahmed

+1

All Articles