Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.

Container doesn't start: Cannot execute /bin/bash #43

Open
Lisio opened this issue Oct 4, 2018 · 2 comments
Open

Container doesn't start: Cannot execute /bin/bash #43

Lisio opened this issue Oct 4, 2018 · 2 comments

Comments

@Lisio
Copy link

Lisio commented Oct 4, 2018

root@docker:/var/lib# docker pull collabora/code
Using default tag: latest
latest: Pulling from collabora/code
bd97b43c27e3: Pull complete 
6960dc1aba18: Pull complete 
2b61829b0db5: Pull complete 
1f88dc826b14: Pull complete 
73b3859b1e43: Pull complete 
d1d89cabd406: Pull complete 
c02fcc31752b: Pull complete 
4594265498c5: Pull complete 
Digest: sha256:2f6d4ba03ec85bf3f123a0b477aa86052b03a53aad5214e32f47a3a7bd2e6423
Status: Downloaded newer image for collabora/code:latest
root@docker:/var/lib# docker run -t -d -p 127.0.0.1:9980:9980 -e 'domain=collabora\\.owncloud\\.test' --restart always --cap-add MKNOD collabora/code
82d9025d42d4ce0f231af82611dfe7d9738c760878a278b2e0785dc1f46aa640
root@docker:/var/lib# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                          PORTS               NAMES
82d9025d42d4        collabora/code      "/bin/sh -c 'bash st…"   22 seconds ago      Restarting (126) 1 second ago                       competent_swanson
root@docker:/var/lib# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                  PORTS                      NAMES
82d9025d42d4        collabora/code      "/bin/sh -c 'bash st…"   23 seconds ago      Up Less than a second   127.0.0.1:9980->9980/tcp   competent_swanson
root@docker:/var/lib# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                          PORTS               NAMES
82d9025d42d4        collabora/code      "/bin/sh -c 'bash st…"   24 seconds ago      Restarting (126) 1 second ago                       competent_swanson
root@docker:/var/lib# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                  PORTS                      NAMES
82d9025d42d4        collabora/code      "/bin/sh -c 'bash st…"   25 seconds ago      Up Less than a second   127.0.0.1:9980->9980/tcp   competent_swanson
root@docker:/var/lib# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                  PORTS                      NAMES
82d9025d42d4        collabora/code      "/bin/sh -c 'bash st…"   26 seconds ago      Up Less than a second   127.0.0.1:9980->9980/tcp   competent_swanson
root@docker:/var/lib# docker logs 82
Generating RSA private key, 2048 bit long modulus
........................................+++
.........+++
e is 65537 (0x10001)
Generating RSA private key, 2048 bit long modulus
...................................................................................+++
.............+++
e is 65537 (0x10001)
Signature ok
subject=/C=DE/ST=BW/L=Stuttgart/O=Dummy Authority/CN=localhost
Getting CA Private Key
Cannot execute /bin/bash
Generating RSA private key, 2048 bit long modulus
..............................................................................................................................+++
...+++
e is 65537 (0x10001)
Generating RSA private key, 2048 bit long modulus
...............................+++
..................+++
e is 65537 (0x10001)
Signature ok
subject=/C=DE/ST=BW/L=Stuttgart/O=Dummy Authority/CN=localhost
Getting CA Private Key
Cannot execute /bin/bash
Generating RSA private key, 2048 bit long modulus
....+++
..............................+++
e is 65537 (0x10001)
Generating RSA private key, 2048 bit long modulus
...........................................................................+++
.............................................................................................+++
e is 65537 (0x10001)
Signature ok
subject=/C=DE/ST=BW/L=Stuttgart/O=Dummy Authority/CN=localhost
Getting CA Private Key
Cannot execute /bin/bash
Generating RSA private key, 2048 bit long modulus
...........+++
...............................+++
e is 65537 (0x10001)
Generating RSA private key, 2048 bit long modulus
...........+++
..............+++
e is 65537 (0x10001)
Signature ok
subject=/C=DE/ST=BW/L=Stuttgart/O=Dummy Authority/CN=localhost
Getting CA Private Key
Cannot execute /bin/bash
Generating RSA private key, 2048 bit long modulus
.............................................+++
...........................+++
e is 65537 (0x10001)
Generating RSA private key, 2048 bit long modulus
..........+++
...................................+++
e is 65537 (0x10001)
Signature ok
subject=/C=DE/ST=BW/L=Stuttgart/O=Dummy Authority/CN=localhost
Getting CA Private Key
Cannot execute /bin/bash
@poggenpower
Copy link

Had the same issue, because / had not the right permissions:

root@81af9f6a653f:/# ls -lad /
drw------- 21 root root 4096 Jan  7 00:07 /
root@81af9f6a653f:/# chmod 755 /

fixed it.

@poggenpower
Copy link

The final solution was to switching the storage provider to overlay2 for my complete docker installation.
See https://docs.docker.com/storage/storagedriver/select-storage-driver/

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

2 participants