Skip to content

Conversation

@juanchomang
Copy link

I expanded on the commands to provide more detailed instructions on how to perform a backup of Rustdesk as well as bringing down the docker containers, removing the containers, removing the images, pruning any unused images, and finally pulling and bringing back up a fresh image of Rustdesk docker container.

I expanded on the commands to provide more detailed instructions on how to perform a backup of Rustdesk as well as bringing down the docker containers, removing the containers, removing the images, pruning any unused images, and finally pulling and bringing back up a fresh image of Rustdesk docker container.
…iners

Changed command to use less aggressive "stop" for bringing down containers
Copy link
Author

@juanchomang juanchomang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed:
docker kill

for a more gentle:
docker stop

@rustdesk
Copy link
Owner

rustdesk commented May 31, 2025

Coud you confirm if below better If docker compose up -d --build --pull always does not work for you?

docker compose down
docker compose pull 
docker compose up -d

Your commands work, but it is not a docker compose way. :(

@juanchomang
Copy link
Author

Sure, that works for upgrading but it does not clean up unused images.

@rustdesk
Copy link
Owner

docker compose down
docker rmi rustdesk/rustdesk-server-pro  
docker image prune -f 
docker compose pull 
docker compose up -d

Will work?

@juanchomang
Copy link
Author

Yes, that would work very well.

@rustdesk
Copy link
Owner

Interesting, the pull does not overwrite old image? The old image is not removed? How does it look like with docker images?

@juanchomang
Copy link
Author

I will try at the next version upgrade as it is not possible to replicate the environment now that I have upgraded... I even tried to pull an older image but the tag doesn't match so it won't overwrite...

@juanchomang
Copy link
Author

I will try this:

docker compose down
docker compose pull
docker compose up -d

@rustdesk
Copy link
Owner

Thanks, great.

@xlionjuan
Copy link
Contributor

docker compose pull
docker compose up -d

This will reduce downtime. The first command pulls the new image; the second command switches to the new image and recreates the container without having to wait for the pull process (though both RustDesk OSS and Pro server images are small).

After Docker switches to the new image, the old one becomes a "dangling image" (unused). Users should remove it themselves if needed.

We should not suggest users run this command, as they may be unfamiliar with Docker and risk causing data loss. We shouldn't have to take this responsibility.

docker image prune -f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants