KhueApps
Home/DevOps/Docker

Docker

Working with Docker, Docker Compose, Docker Swarm, Kubernetes, etc.

1 How to fix 'ADD failed: stat … no such file or directory'

2 Fix "permission denied" when connecting to the Docker socket

3 Fixing Docker "Error: No such network" with Compose and CLI

4 Fix 'exported ports must be unique' in Docker Compose

5 How to fix 'Error response from daemon: network with name … already exists'

6 Fix Docker "invalid reference format" errors fast

7 How to fix "Error response from daemon: No such container"

8 Fix Docker 'layer does not exist' from dangling images

9 Fixing Docker “driver failed programming external connectivity”

10 Fix 'depends_on condition' in Docker Compose v3 (migration guide)

11 Fix Docker exit code 137 (OOMKilled) for out-of-memory containers

12 How to fix 'conflict: unable to delete repository reference' (image in use)

13 Fix 'Docker Desktop WSL 2 backend stopped' on Windows

14 Fixing Docker containers that exit immediately (PID 1 terminates)

15 Docker Compose: Change PostgreSQL Username and Password Safely

16 Set Up Git Inside a Docker Container (Practical Guide)

17 Fixing healthcheck failed and unhealthy Docker containers

18 How to use a Makefile to simplify Docker and Compose commands

19 How to Fix 'Container is restarting' When docker exec Fails

20 Fix Docker 'Get …: dial tcp: lookup … no such host' errors

21 Docker Compose: NGINX with Local HTTPS (SSL) Setup

22 Fix resource busy errors removing Docker volumes or containers

23 Fix Docker bind mount error: source path does not exist

24 Fixing Docker 'error creating overlay mount: operation not permitted'

25 Fixing 'mounts denied' and file sharing on Docker Desktop (macOS/Windows)

26 Fix 'insufficient_scope: authorization failed' with Docker private registries

27 Fix 'path is not shared from the host' on Docker Desktop

28 Fix 'You must be root to run Docker' or Add User to docker Group

29 Fix 'iptables not found' and firewall blocks in Docker networking

30 Fix "too many open files" in Docker daemon and containers

31 Fix 'Service declares neither an image nor a build context' in Compose

32 Fixing 'no space left on device' in Docker images and containers

33 Fix 'Cannot locate specified Dockerfile' and 'open Dockerfile' Errors

34 Fix 'yaml: mapping values not allowed' in docker-compose.yml

35 Fix 'The path must be absolute' for volumes and binds in Compose

36 Fixing “OCI runtime exec failed: container not running” in Docker

37 How to fix 'ERROR: for <service> Cannot start service …' in Compose

38 Fixing "The Compose file is invalid" schema errors in Docker

39 Fix 'working directory is invalid' in Docker Compose

40 Fix VS Code Python warnings in Docker Compose projects

41 Fix 'Found orphan containers' in docker compose up

42 Run Docker Swarm over a WireGuard VPN

43 Fix Docker 'Cannot start service: bpf: operation not permitted'

44 Fix 'docker: compose is not a docker command' (CLI plugin)

45 Fix 'unknown flag: --build' and order errors in docker compose

46 Fix 'docker-compose: command not found' and migrate to Compose v2

47 Fix 'unknown shorthand flag: -d' in docker compose up

48 Fix 'services.*.ports invalid type' in Docker Compose (string vs list)

49 Fix Docker “failed to create shim task: address already in use”

50 Fix duplicate service names and project collisions in Docker Compose

51 Fix Docker Compose error: external volume could not be found

52 Set Up Docker Swarm on a Local Network with Managers and Workers

53 Fix Docker exec format error: architecture mismatch and line endings

54 Fix 'User specified in Dockerfile does not exist' at runtime

55 Set up HTTPS with Caddy in Docker Compose

56 Fix 'context canceled' or 'rpc error: Canceled' in Docker builds

57 Fix Docker multi-arch mismatches and correct --platform use

58 How to fix "Cannot remove network: resource is busy" (active endpoints)

59 Fix ENV interpolation error: invalid interpolation format in Compose

60 Fix Docker build error: failed to solve process /bin/sh -c

61 Fix Docker error: buildx required — enable BuildKit or install buildx

62 How to fix 'OCI runtime create failed: permission denied' in Docker

63 Fix Docker error: volume is in use and cannot be removed

64 How to fix 'no basic auth credentials' when pushing to a registry

65 How to fix 'temporary failure in name resolution' inside containers

66 How to fix 'Error response from daemon: No such image: …'

67 Fix 'Get https://registry-1.docker.io/v2/: TLS handshake timeout'

68 Fix Docker 'no such file or directory' (CRLF, shebang)

69 Fixing 'toomanyrequests: rate exceeded' on Docker Hub pulls

70 Fix “docker daemon is not running” on Linux, macOS, and Windows

71 Fix Docker x509 error: certificate signed by unknown authority

72 Fix "Cannot connect to the Docker daemon" on Linux, macOS, and WSL2

73 How to fix 'Error response from daemon: remove …: volume is in use'

74 Fixing 'failed to compute cache key: not found' in Docker builds

75 Fix 'Cannot connect to the Docker daemon: permission denied'

76 Fixing Docker name conflicts: 'container name is already in use'

77 Fixing Docker push error: denied: requested access to the resource is denied

78 Fix Docker "client is newer than server" version error

79 Fix Docker pull access denied and login-required errors

80 Docker Compose for FastAPI with Postgres, Redis, and NGINX/Caddy

81 How to fix 'Error response from daemon: network … has active endpoints'

82 Fixing “OCI runtime create failed” when starting Docker containers

83 Fix “no matching manifest for linux/amd64 (or arm64)” in Docker

84 How to fix 'manifest unknown' when pulling an image

85 Fix 'Version in docker-compose.yml is unsupported' in Compose

86 Fix Docker builds that reuse cache unexpectedly or ignore --no-cache

87 Fix /bin/sh^M: bad interpreter in Docker containers

88 Fix Docker 'copy file range failed: invalid argument' on Windows

89 Fix Docker bind mount error: source path must be a directory

90 Fix OCI runtime exec failed: bash not found in PATH (Docker)

91 Fix Docker “Ports are not available: listen tcp 0.0.0.0:PORT”

92 Fix Docker COPY failed: file not found or excluded by .dockerignore

93 Diagnosing 'Service <name> failed to build' in Docker Compose

94 Fix "port is already allocated" when starting Docker containers

95 Fix Docker BuildKit error: failed to create LLB definition

96 Fixing 'did not find expected key' in docker-compose.yml

97 Fix Docker 'executor failed running [/bin/sh -c …]: exit 127'

98 Fix Docker Compose error: external network not found

99 Fix Docker Compose: service_healthy but no healthcheck defined

100 Fix Docker pull failures behind proxies with HTTP(S)_PROXY/NO_PROXY

101 Fix Docker Container Exits with Codes 139, 143, and 1

102 Fixing 'No container found for <service>_1' in docker compose exec

103 Fix “profiles not found” and misused Docker Compose profiles

104 Fixing 'network_mode: host' vs port bindings in Docker Compose

105 Fix 'permission denied' on Docker daemon socket (/var/run/docker.sock)

106 Fix "WSL distro is stopped" when Docker Desktop won’t start

107 Fix Operation not permitted for SYS_ADMIN in Docker containers

108 Fix docker compose error: Service depends on undefined service

109 Fix AppArmor or SELinux denials that block Docker containers

110 Backup and Restore PostgreSQL in Docker Compose (Practical Guide)