Skip to content

Crash on a docker dind environment #330

@soullivaneuh

Description

@soullivaneuh

Which the following GitLab CI configuration, which is run under docker dind:

image: docker

services:
  - docker:dind

variables:
  DOCKER_DRIVER: overlay2
  PORTS_FIRST_NUMBER: 8

before_script:
  - docker info
  - apk add --update bash python py-pip python-dev
  - pip install docker-compose
  - ./configure
  - docker-compose up -d
  - docker-compose ps
  - docker-compose logs mysql
  - docker-compose exec -T console make install

stages:
  - lint
  - test

lint:
  stage: lint
  script:
    - docker-compose exec -T console make lint

test:
  stage: test
  script:
    - docker-compose exec -T console make test

I get a crash on MySQL:

$ docker-compose ps
       Name                      Command               State                                       Ports                                   
-------------------------------------------------------------------------------------------------------------------------------------------
project_apache_1     /entrypoint.sh apache2-for ...   Up       0.0.0.0:8000->80/tcp                                                       
project_console_1    /entrypoint.sh tail -f /de ...   Up                                                                                  
project_data_1       /bin/sh                          Exit 0                                                                              
project_docker_1     dockerd-entrypoint.sh            Up       2375/tcp                                                                   
project_mysql_1      docker-entrypoint.sh mysqld      Exit 1                                                                              
project_ngrok_1      /entrypoint.sh                   Up       0.0.0.0:8040->4040/tcp                                                     
project_pma_1        /run.sh phpmyadmin               Up       0.0.0.0:8100->80/tcp                                                       
project_rabbitmq_1   docker-entrypoint.sh rabbi ...   Up       15671/tcp, 0.0.0.0:8200->15672/tcp, 25672/tcp, 4369/tcp, 5671/tcp, 5672/tcp
$ docker-compose logs mysql
Attaching to lintocop_mysql_1
mysql_1     | 
mysql_1     | ERROR: mysqld failed while attempting to check config
mysql_1     | command was: "mysqld --verbose --help"
mysql_1     | 
mysql_1     | mysqld: error while loading shared libraries: libpthread.so.0: cannot stat shared object: Permission denied

As you can see, all the other service are up and running. So I guess this issue is related to this repository.

I don't have the issue on my local (without dind), but I don't know why this issue...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions