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.
No description
No description
18 Replies
caturhidayat.space
caturhidayat.spaceOP4mo ago
No description
Siumauricio
Siumauricio4mo ago
Are you using mounts?
caturhidayat.space
caturhidayat.spaceOP4mo ago
yes, i using volumes with bind mount
caturhidayat.space
caturhidayat.spaceOP4mo ago
i try to redeploy without volumes bind mount, then facing this issue
No description
Siumauricio
Siumauricio4mo ago
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
caturhidayat.space
caturhidayat.spaceOP4mo ago
where is the swarm route menu?
caturhidayat.space
caturhidayat.spaceOP4mo ago
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
No description
Siumauricio
Siumauricio4mo ago
In the Sidebar
caturhidayat.space
caturhidayat.spaceOP3mo ago
Do you mean this page? i can't find swarm route.
caturhidayat.space
caturhidayat.spaceOP3mo ago
No description
caturhidayat.space
caturhidayat.spaceOP3mo ago
in the docker page i found container view, this the log from docker page
No description
Dominic
Dominic3mo ago
Hey! How did you find this? I'm having the same issue.
caturhidayat.space
caturhidayat.spaceOP3mo ago
Log from docker or container
Dominic
Dominic3mo ago
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.
version: '3.8'

services:
nextjs:
build:
context: .
dockerfile: Dockerfile
ports:
- "port:port" # change port to your port
environment:
- NODE_ENV=production
networks:
- bridge

networks:
bridge:
external: true
version: '3.8'

services:
nextjs:
build:
context: .
dockerfile: Dockerfile
ports:
- "port:port" # change port to your port
environment:
- NODE_ENV=production
networks:
- bridge

networks:
bridge:
external: true
this should work
jieyaoke
jieyaoke3mo ago
\
caturhidayat.space
caturhidayat.spaceOP3mo ago
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..??
Dominic
Dominic2mo ago
check dokploys documentation
arobius
arobius2mo ago
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.

Did you find this page helpful?