phpmyadmin / docker

Docker container for phpMyAdmin
https://hub.docker.com/_/phpmyadmin
GNU General Public License v3.0
666 stars 453 forks source link

docker: Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/<string-of numbers>fb-init/merged: too many levels of symbolic links. #267

Closed STaRDoGG closed 1 year ago

STaRDoGG commented 4 years ago

I'm trying to run this command:

docker run --name phpmyadmin -d -p 9024:80 --net='my-db' -e TZ='America/Chicago' -e PMA_HOST=mysql -e MYSQL_ROOT_PASSWORD='werewrew#FDFDS%^FDF' -e PMA_ABSOLUTE_URI='https://my.domain.rocks:3333/phpmyadmin/' -v '/f/Sites/myWeb/.config/PHPMyAdmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php' -v '/f/Sites/myWeb/.config/PHPMyAdmin/apache2.conf:/etc/apache2/apache2.conf' -v '/f/Sites/myWeb/.config/PHPMyAdmin/Saved:/saved' -v '/f/Sites/myWeb/.config/PHPMyAdmin/Upload:/upload' -v '/f/Sites/myWeb/.config/PHPMyAdmin/Themes/:/var/www/html/themes/' phpmyadmin/phpmyadmin:latest

But I keep getting the error:

docker: Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/[string-of-numbers]-init/merged: too many levels of symbolic links.

Any ideas why?

williamdes commented 4 years ago

@STaRDoGG no idea, the issue is out of the scope of phpMyAdmin

But my advice would be to remove arguments from the command line until the error is not here. You will then have found the error in your config :)

ibennetch commented 4 years ago

I did look in to this, but the best answer I could find on StackOverflow about these sorts of errors was someone saying essentially "that's one of the quirks of Docker" — I couldn't find any better solution than that.

If you link fewer -v files does that work?

STaRDoGG commented 4 years ago

Thanks for looking into this, guys.

I'm still wrestling with this issue:

https://stackoverflow.com/q/59782031/553663

I'm even getting it when I remove all volume mounts. i.e. just running:

docker run --name phpmyadmin -d -p 9024:80 --net=my-db -e TZ=America/Chicago -e "PMA_HOST=mysql" -e "MYSQL_ROOT_PASSWORD=redacted" -e "PMA_ABSOLUTE_URI=https://my.domain.rocks:33333/phpmyadmin/" phpmyadmin/phpmyadmin:latest
Unable to find image 'phpmyadmin/phpmyadmin:latest' locally
latest: Pulling from phpmyadmin/phpmyadmin
8ec398bc0356: Already exists
85cf4fc86478: Already exists
970dadf4ccb6: Already exists
8c04561117a4: Already exists
d6b7434b63a2: Already exists
83d8859e9744: Already exists
9c3d824d0ad5: Already exists
0ff2f3c2c8ab: Extracting [==================================================>]  10.58MB/10.58MB
f7a2cdcb0840: Download complete
fe8c2411b50b: Download complete
aa0cb4375001: Download complete
96198bf1ad68: Download complete
5fe54d7827f9: Download complete
b14701794f98: Download complete
017ea991a64c: Download complete
b9fac930b192: Download complete
1807d0d7270b: Download complete
5fe7c1ba6fbd: Download complete
docker: failed to register layer: error creating overlay mount to /var/lib/docker/overlay2/32a716d9ae4c60363ebb11152502fba95ee7589bf28474ff9dbc93519f33b6a9/merged: too many levels of symbolic links.
See 'docker run --help'.

I only get this issue when trying to run the PHPMyAdmin container.

williamdes commented 4 years ago

I am not sure this issue is for phpMyAdmin Could you try to run the hello world image using the same command ?

STaRDoGG commented 4 years ago

image

image

williamdes commented 4 years ago

@J0WI what do you think about this issue ?

J0WI commented 4 years ago

Never heard about it. Is this Windows only?

Could you try to run the hello world image using the same command ?

The hello world image or the ubuntu base image are not comparable. Maybe you can try with wordpress:apache or php:apache?

STaRDoGG commented 4 years ago

@J0WI AHA! You've hit on something. (But I'm not experienced enough w/docker yet to know what, lol).

image

Yes, I am running Docker Desktop in Win 10 x64, running Linux containers.

J0WI commented 4 years ago

We can't help you here, I suggest that you try moving this issue to https://github.com/docker/for-win or https://github.com/docker-library/php :confused:

STaRDoGG commented 4 years ago

@J0WI ok, thanks. Any ideas though? It seems like you sort of have an idea, based on the suggestion you gave that pointed right to it.

I'll try the PHP issues area; the Docker issues apparently get ignored by and large: https://github.com/docker/for-win/issues

kukubadze commented 4 years ago

i had same error with other image, because of corrupted image. just deleted and pull image then it started to work

Maelzin13 commented 3 years ago

failed to register layer: error creating overlay mount to /var/lib/docker/overlay2/73b07c78e2fddeb494013ff4998318723eb5c8a5ba7c396210a7b534d3d87c31/merged: too many levels of symbolic links

Alguém pode dar um help ?

miro-balaz commented 2 years ago

https://github.com/docker/for-win/issues/5763#issuecomment-936254676