Hi,
I work without image registry, so that i build Grandnode after my changes on my server. However it takes some time to perform a deploy after commiting some changes. First of all - if someone wants to work like me i want to share my script with steps that helps me a lot to do it as fast as it's possible.
docker rm $(docker stop $(docker ps -a -q --filter ancestor=grandnode--format="{{.ID}}"))
docker system prune --all --volumes
git pull
docker build -t grandnode -f Dockerfile .
docker create grandnode
docker run -d -p 0.0.0.0:8081 --name grandnode --link mongodb:mongo grandnode
However - after recreating Grandnode i have to stop it and make a database drop and recreate with older stuff - so my question is - is it possible to connect to existing grandnode database without request to mongodb to create another one?
Grandnode on docker containers
Monday, November 25, 2024 9:53:00 PM