CollaboraOnline / Docker-CODE

Dockerfile and scripts to generate CODE Docker image
147 stars 67 forks source link

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

Open Lisio opened 5 years ago

Lisio commented 5 years ago
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 commented 4 years ago

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 commented 4 years ago

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/