Docker Community Forums

Share and learn in the Docker community.

Ubuntu16.04 Container command not found: /bin/bash

docker

(Geronimo123) #1

Hi,
i am unable to use the latest ubuntu 16.04 image. Doesn’t matter what i try to start in the image, docker says container command not found.
This is what i did.

$docker pull ubuntu:16.04
16.04: Pulling from library/ubuntu
5ba4f30e5bea: Already exists
6874f9870f5f: Pull complete
4c876570bd7d: Pull complete
10fb34ebccea: Pull complete
Digest: sha256:f1b592e2de671105255a0c0b7b2f71a92b829403e8fc845e3482667ecc301780
Status: Downloaded newer image for ubuntu:16.04

$docker run -it ubuntu:16.04
exec: “/bin/bash”: stat /bin/bash: no such file or directory
docker: Error response from daemon: Container command not found or does not exist…

$docker run -it ubuntu:16.04 /bin/sh
exec: “/bin/sh”: stat /bin/sh: no such file or directory
docker: Error response from daemon: Container command not found or does not exist…

$docker version
Server:
Version: 1.10.3
API version: 1.22
Go version: go1.5.4
Git commit: 9e83765
Built:
OS/Arch: linux/amd64

$uname -a
Linux XXX 3.12.57-60.35-default #1 SMP Tue Mar 22 10:47:09 UTC 2016 (1cd55eb) x86_64 x86_64 x86_64 GNU/Linux

$docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu 14.04 38c759202e30 2 days ago 196.6 MB
ubuntu 16.04 12543ced0f6f 2 weeks ago 122.4 MB
ubuntu latest 12543ced0f6f 2 weeks ago 122.4 MB

With the ubuntu 14.04 image it works

$docker run -it ubuntu:14.04
root@61a015350322:/#

Any ideas on this topic?


(Alexandre) #2

Hi,

I can confirm that these two commands definitively work:

docker run -it ubuntu:16.04
docker run -it ubuntu:16.04 /bin/sh

Which OS/kernel are you running?

FYI, my docker version:

docker version
Client:
 Version:      1.12.0-rc2
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   906eacd
 Built:        Fri Jun 17 20:35:33 2016
 OS/Arch:      darwin/amd64
 Experimental: true

Server:
 Version:      1.12.0-rc2
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   a7119de
 Built:        Fri Jun 17 22:09:20 2016
 OS/Arch:      linux/amd64
 Experimental: true

(Geronimo123) #3

Hi,

docker is running on Suse

$uname -a
Linux XXX 3.12.57-60.35-default #1 SMP Tue Mar 22 10:47:09 UTC 2016 (1cd55eb) x86_64 x86_64 x86_64 GNU/Linux


(Alexandre) #4

And if you run
docker run -it --rm ubuntu:16.04 ls /bin

I suppose you get the “docker: Error response from daemon: Container command not found or does not exist…” ?

Also, what’s the result of
env | grep -i docker
?


(Geronimo123) #5

$docker run -it --rm ubuntu:16.04 ls /bin
exec: “ls”: executable file not found in $PATH
docker: Error response from daemon: Container command not found or does not exist…

$env | grep -i docker
returns nothing