Question Docker 101: Changing image versions

Currently reading
Question Docker 101: Changing image versions

1,104
361
NAS
DS418play, DS213j, DS3621+, DSM 7.0.4-11091
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.
 

fredbert

Moderator
NAS Support
Subscriber
1,700
692
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
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.
 
1,104
361
NAS
DS418play, DS213j, DS3621+, DSM 7.0.4-11091
Thanks. I was concerned about wrecking a working container. This looks good.
 

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.

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Similar threads

Similar threads

Trending threads

Top