docker-vrising icon indicating copy to clipboard operation
docker-vrising copied to clipboard

Server restart after docker container stop

Open Buggy1987 opened this issue 3 years ago • 3 comments

Hello, thank you for your great docker container but i have an error.

After playing and stopping the server with the "docker container stop ID" command i cant start the server again with the CLI command.

Errorcode: docker: Error response from daemon: Conflict. The container name "/vrising" is already in use by container "XXXXXXXXXIDXXXXNUMBERXXXXXXXXXXXXXX". You have to remove (or rename) that container to be able to reuse that name.

How can i restart the container?

Thank 4 help

Buggy1987 avatar Jun 06 '22 08:06 Buggy1987

I would use portainer or some other docker service (I'm using the unraid gui) to manage your containers. your question is related to docker in general. do docker ps -a and look at the container status. Also, a container name with a fw slash?

TrueOsiris avatar Jun 06 '22 09:06 TrueOsiris

For now i have started the server once with your given cli command. But how can i stop the server in the right way? I mean does the server creates a save if i send the command "docker container stop id"?

Buggy1987 avatar Jun 07 '22 06:06 Buggy1987

No, it does an interrupt of the process. But the server should autosave when the last player logs out, and do periodic saves when people are playing.

TrueOsiris avatar Jun 15 '22 20:06 TrueOsiris

@Buggy1987 If you start the container with the cli command in the readme and stop the container with "docker container stop ", you can start the container with "docker start ID" Example; First start

docker run -d --name='vrising' \
--net='bridge' \
--restart=unless-stopped \
-e TZ="Europe/Paris" \
-e SERVERNAME="trueosiris-V" \
-v '/path/on/host/server':'/mnt/vrising/server':'rw' \
-v '/path/on/host/persistentdata':'/mnt/vrising/persistentdata':'rw' \
-p 9876:9876/udp \
-p 9877:9877/udp \
'trueosiris/vrising'

Stop

docker stop vrising

Start

docker start vrising

You can also use docker restart vrising for restart the container

ekremparlak avatar Oct 28 '22 10:10 ekremparlak