Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container is in an endless restart-loop #40

Closed
stevleibelt opened this issue Sep 19, 2018 · 3 comments
Closed

Container is in an endless restart-loop #40

stevleibelt opened this issue Sep 19, 2018 · 3 comments
Labels

Comments

@stevleibelt
Copy link

stevleibelt commented Sep 19, 2018

Hey, I just wanted to use adminer in a simple docker-compose.yml stack:

version: '3.7'

services:
    adminer_application:
        container_name: example-adminer
        hostname: adminer.application
        image: adminer:4
        ports:
            - 8080:8080
        restart: unless-stopped
    mysql_dbms:

        command: --default-authentication-plugin=mysql_native_password
        container_name: example-mysql
        environment:
            MYSQL_USER: foo
            MYSQL_PASSWORD: bar
            MYSQL_ROOT_PASSWORD: bar
        hostname: mysql.database
        image: mysql:8
        restart: unless-stopped
        volumes:
            - ./../../data/mysql:/var/lib/mysql

While the mysql container is running great, the adminer container is in an endless restart loop.

When I comment out the "restart: unless-stopped" and try to start it with:

docker container start -a example-adminer

I get this output:

[Wed Sep 19 09:57:41 2018] Failed to listen on :::8080 (reason: php_network_getaddresses: getaddrinfo failed: Name does not resolve)
<br />
<b>Warning</b>:  Unknown: php_network_getaddresses: getaddrinfo failed: Name does not resolve in <b>Unknown</b> on line <b>0</b><br />

Same output is produced when I start the container with:

docker container start -i example-adminer
sudo netstat -tulp | grep -c 8080

Returns "0".

What am I doing wrong?
I've also tried it with no container_name or no hostname definition in the docker-compose.yml.

Here are some specs about my environemnt:

#docker --version
Docker version 18.06.1-ce, build e68fc7a21
#docker-compose --version
docker-compose version 1.22.0, build unknown
#uname -a
Linux <hostname> 4.14.70-1-lts #1 SMP Sat Sep 15 16:47:42 CEST 2018 x86_64 GNU/Linux
#cat /etc/issue
Arch Linux \r (\l)

Thanks in advance and especially for your work so far,
Stev

@TimWolla
Copy link
Owner

@stevleibelt Sorry for getting back to you just now.

Your error message:

Failed to listen on :::8080 (reason: php_network_getaddresses: getaddrinfo failed: Name does not resolve)

looks like IPv6 support is disabled in your Kernel, could this be the case? You might have success running Adminer by reverting this change: 73de6b9.

You really really should get IPv6 working, though (even if only for loopback and link local) 😄

@stevleibelt
Copy link
Author

@TimWolla

Thank you very much, yes indeed I had to disable ip v6 in my kernel to make a mandatory but proprietary software to work :-(.
Really thanks for your reply I will close it now.

@nmrshll
Copy link

nmrshll commented Jan 25, 2019

Thanks for the answer @TimWolla

Reverting to the docker-image adminer:4.2.5-standalone (i.e. before the change 73de6b9) seems to do the trick if you really can't enable ipv6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants