Search Results
7/16/2025, 2:03:30 AM
>>105920618
next time ask Chatgpt
The error you are seeing, unable to get image 'caddy:<version>': Error response from daemon: invalid reference, is because Docker is unable to pull the image with the placeholder <version>.
To fix this, replace <version> with the actual version of Caddy you'd like to use. For example, you could use caddy:latest for the latest version or a specific version like caddy:2.6.0 depending on your needs.
Here’s an updated docker-compose.yml example:
services:
caddy:
image: caddy:latest # Replace <version> with 'latest' or a specific version
restart: unless-stopped
cap_add:
- NET_ADMIN
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- $PWD/conf:/etc/caddy
- $PWD/site:/srv
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config:
Make sure to replace caddy:latest with the version you need.
If you're still facing issues, check that the docker-compose.yml file is in the correct directory, and confirm that Docker is set up properly on your system.
next time ask Chatgpt
The error you are seeing, unable to get image 'caddy:<version>': Error response from daemon: invalid reference, is because Docker is unable to pull the image with the placeholder <version>.
To fix this, replace <version> with the actual version of Caddy you'd like to use. For example, you could use caddy:latest for the latest version or a specific version like caddy:2.6.0 depending on your needs.
Here’s an updated docker-compose.yml example:
services:
caddy:
image: caddy:latest # Replace <version> with 'latest' or a specific version
restart: unless-stopped
cap_add:
- NET_ADMIN
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- $PWD/conf:/etc/caddy
- $PWD/site:/srv
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config:
Make sure to replace caddy:latest with the version you need.
If you're still facing issues, check that the docker-compose.yml file is in the correct directory, and confirm that Docker is set up properly on your system.
Page 1