CDNShark Documentation

Docker Hosting

← Back to Documentation

Docker Hosting Troubleshooting

My public URL shows "502 Bad Gateway"

The edge reached your host but nothing answered on that port. Check, in order:

  1. The container is running. In the Containers list its state should be Running. If it keeps restarting, open its logs.
  2. The URL uses the host port. For 8080 → 80 the URL's host port must be 8080, not 80. The Ports column shows each mapping.
  3. Your app listens on all interfaces. Inside the container it must listen on 0.0.0.0, not 127.0.0.1 or localhost. Many frameworks default to localhost in development mode; set the host to 0.0.0.0.
  4. The host has just started. After a new order or a payment that unsuspended it, allow about a minute for the host and your containers to start, then reload.

My public URL shows "This app is temporarily unavailable"

The host is suspended, usually because a renewal invoice is unpaid. Pay it under Orders & Invoices → Invoices and the host starts again. See Docker Plan Limits and Billing.

"Your plan allows 10 containers" or "runs up to 5 containers at a time"

A plan limit was reached. Stopped containers count towards the 10: remove ones you no longer need. To start another, stop one that is running. In compose projects every service, and every replica, counts.

The deploy fails with "pull access denied" or "unauthorized"

  • Check the image name and tag for typos.
  • For a private image, log the host in to its registry first: Use a Private Registry.
  • Docker Hub limits anonymous pulls. Logging in with a free Docker Hub account raises the limit.

"network_mode: host is not allowed"

Remove network_mode: host from the service and publish the ports it needs instead, for example ports: ["8080:8080"]. Then give the host port a public URL.

I can't reach my app on the host's IP address

That is expected: your host only accepts connections from the CDNShark network. Use a public URL: Make Your App Public with an HTTPS URL.

The disk is full

Use Clean up unused images under Free up disk space. If your own data fills the disk, delete what you no longer need from your volumes, or open a support ticket to move to a bigger plan.

Still stuck?

Open a support ticket with the host name, the container or project name, and the last lines of its log.