How do I determine base Docker?


Recommended Posts

Bizarrely this is not easy. It is one of my pet hates about docker and I am sure it will be addressed in time but curetnly you need to find the name of the template, locate its docker repo online then use that to find its githib page and check the dockerfile FROM line for the version you are using (as in theory it can easily change between versions)

Link to comment

OK so I am confused then. For example where can I see the dockerfile for phusion 0.9.12

 

https://registry.hub.docker.com/u/phusion/baseimage/

 

(edit: bad example since this is a base OS albeit one based on another base OS)

 

or using this better example

 

https://registry.hub.docker.com/u/gfjardim/nzbget/dockerfile/

 

how can I confirm the version I have matches my slightly older install.?

 

Certainly the hub shows the latest dockerfile but I dont see how that can be assumed is an exact match for what i installed previously... or are we making the assumption to dockerfile is being reviewed at precisely the same time as container pull?

Link to comment

OK so I am confused then. For example where can I see the dockerfile for phusion 0.9.12

 

https://registry.hub.docker.com/u/phusion/baseimage/

 

(edit: bad example since this is a base OS albeit one based on another base OS)

 

or using this better example

 

https://registry.hub.docker.com/u/gfjardim/nzbget/dockerfile/

 

how can I confirm the version I have matches my slightly older install.?

 

Certainly the hub shows the latest dockerfile but I dont see how that can be assumed is an exact match for what i installed previously... or are we making the assumption to dockerfile is being reviewed at precisely the same time as container pull?

 

This is why I said Dockers should never use the 'latest' version tag and why I think unRAID is sort of abusing it. The version tag of the Docker file should be explicitly labeled and versioned and used in the Docker creation.

 

Yes, without refinement in the Docker-Manager UI that is a bit of a PITA to the end user, but it is what's needed. The UI should browse the specified repository, pull all the tag versions on the Docker file and present that selection as a choice to the user.

 

That way you will know exactly what you have in the Docker. Of course I'm also assuming the Docker follows the tenants of Docker and does not do abusive things like auto-updating.

 

Link to comment

It only shows the Dockerfile for the latest build. Only the creator of the container can see the Dockerfile used to build the different builds.

I didn't see any options so that everyone can see the Dockerfile of each build when I looked.

 

You'd have the Docker file setup in a public viewable GIT repository and tagged with the same version tag as used on the Docker Registry. It would have to be by convention, since the registry seems to have limited functionality.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.