NestJS Deploy error : Error response from daemon: No such container: select-a-container
Hi everyone, I'm trying to deploy the next js application. The deployment process is successful as shown in the picture, but I see an error in the log: Error response from daemon: No such container: select-a-container.


18 Replies

Are you using mounts?
yes, i using volumes with bind mount
i try to redeploy without volumes bind mount, then facing this issue

Go to Swarm Route -> search your container and you should be able to see the real error
If you use a invalid mount it will not throw any error
where is the swarm route menu?
Hi @Siumauricio , my container already running, i'v re bind volumes.
but i facing one more issue, when i add public/ in publish Directory the container error again. because of that i can't access to my public directory

In the Sidebar
Do you mean this page? i can't find swarm route.

in the docker page i found container view, this the log from docker page

Hey! How did you find this? I'm having the same issue.
Log from docker or container
I found a solution in the end. Make a compose application instead, link it to the repo (add a docker-compose.yml file) and it should work.
this should work
\
When using confirmation liake this, how to setup CI/CD?
i mean when i PR from dev branch to prod in github, it's automatically deploy..??
check dokploys documentation
There is instructions for github here
https://docs.dokploy.com/docs/core/auto-deploy
Auto Deploy | Dokploy
Automatically deploying your application to Dokploy can be achieved through two primary methods using Webhooks or the Dokploy API. Each method supports various platforms and provides a streamlined deployment process.