User Tools

Site Tools


wiki:docker_troubleshooting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:docker_troubleshooting [2023/12/01 13:04] – add No internet access paragraph antisawiki:docker_troubleshooting [2026/07/16 11:11] (current) – add network doesn't exist error antisa
Line 85: Line 85:
  
 =====   stderr: 'failed to solve: failed to compute cache key: failed to calculate checksum ... no such file or directory' ===== =====   stderr: 'failed to solve: failed to compute cache key: failed to calculate checksum ... no such file or directory' =====
-Make sure that the files (app files, folders etc.) that the Dockerfile is suppose to copy are in the project root directory, where the Dockerfile file is (or docker compose file).+Make sure that the files (app files, folders etc.) that the Dockerfile is suppose to copy are in the project root directory, where the Dockerfile file is (or docker compose file). Also check ''.dockerignore''
  
 ===== No internet access when building an image ===== ===== No internet access when building an image =====
Line 132: Line 132:
   * ansible 2.9.27   * ansible 2.9.27
   * docker 24.0.7   * docker 24.0.7
 +
 +
 +===== Containers lose access to internet suddenly =====
 +Try docker version downgrade. I had issues with version 5:28.0.4-1~debian.11~bullseye. Downgrading to 23.0.1 seems to have resolved the problem.
 +
 +==== Tested on ====
 +  * Debian 11
 +
 +===== docker-compose down default_network error =====
 +Try running compose down with exact same compose files as when the containers where created so if the containers were created like this:
 +
 +  # docker compose -f compose.database.yml -f compose.nats.yml -f compose.yml up -d
 +
 +Run this:
 +
 +  # docker compose -f compose.database.yml -f compose.nats.yml -f compose.yml down
 +
 +A simple ''docker compose down'' in the same directory will result in above error.
 +
 +===== network ... does not exist =====
 +
 +<code | download>
 +'Error starting container 433f85f4bdf20d81c2f1c5ea5732e598d5ec0b7ea40e373d2e7a04fdff1b70d3:
 +        500 Server Error for http+docker://localhost/v1.55/containers/433f85f4bdf20d81c2f1c5ea5732e598d5ec0b7ea40e373d2e7a04fdff1b70d3/start:
 +        Internal Server Error ("failed to set up container networking: failed to create
 +        endpoint <container_name> on network <network_name>: network 979026f0e39e821207f8070a704fa949e31ed0742b1f06348da7540b5c785e13
 +        does not exist")'
 +</code>
 +
 +Delete the network <network_name> mentioned in the message.
 +  docker network rm <network_name>
  
 ====== See also ====== ====== See also ======
wiki/docker_troubleshooting.1701435877.txt.gz · Last modified: by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki