Question Docker 101: Changing image versions

Currently reading
Question Docker 101: Changing image versions

Telos

Subscriber
3,367
1,116
NAS
DS418play, DS213j, DS3623xs+, DSM 7.3.3-25847
Most of the Docker images I use are from the "latest" category. If I wanted to test the "beta" image, or a specific release, a new container is created.

Being lazy, I don't want to re-enter my paths, environmental variables, etc.

What's the best way to do this? Poking around Synology's Docker GUI I'm guessing I could export the settings from the "latest" container, and then import those settings into the "beta" container. Would that work?

Or would I simply stop the "lastest" container... and rename it from "something" to "something-latest-save"... and then rename the "beta" container from "something-beta" to "something"? If I did that would the new "something" container inherit the settings from the original "something" container?

I hope I've made this clear. Basically I'd like to try out a beta (or develop) image, with the ability to revert to the lasted image... with the minimum of fuss and effort.
 
I tested this out recently for a response at the dark side.

Basically, download the image you want (and make sure you volume data is on NAS folders):
  1. Export the config
  2. Edit the config and change the image from ':latest' to something else.
  3. Create a new container by importing the config.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

• Synology – Dr_Frankenstein's Tech Stuff • Using Docker on Synology NAS Lot of guides in blogs and...
Replies
4
Views
2,056
  • Question
Good to know, thanks. I have the NAS on my default network and the clients on an IOT network, but with a...
Replies
5
Views
292
done. everything works as expected. Thanks for help @Rusty and @Telos
Replies
6
Views
267
Oh, I see! That does appear to be a lot easier. Thanks for your reply! (y)
Replies
8
Views
560
Replies
5
Views
484
I've done the MACVLAN setup with Portainer/Docker, so I get the gist of what you are saying, there is...
Replies
6
Views
918
Well, that's the reason as you already noticed. So you haven't migrated the @docker content? Do you have...
Replies
5
Views
346

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top