Load Local Docker Image Not From Registry?

HarryMuscle

Contributor
Joined
Nov 15, 2021
Messages
161
What would be the Kubernetes approved and/or TrueNAS Scale approved way of loading a local Docker image that is stored locally on the machine (ie: not in a registry anywhere)?

With vanilla Docker I believe it's just

Code:
docker load image.tar


but TrueNAS Scale isn't vanilla Docker.

Thanks,
Harry
 

mervincm

Contributor
Joined
Mar 21, 2014
Messages
157

This looks on topic, 2 responses included.
 

HarryMuscle

Contributor
Joined
Nov 15, 2021
Messages
161

This looks on topic, 2 responses included.
Thanks. I came across that on my initial search but the answer is provided by someone new to TrueNAS, or at least this community, so I was hoping to check what the "approved" approach would be ... which might be exactly what's mentioned in that thread ... maybe.

Thanks,
Harry
 

HarryMuscle

Contributor
Joined
Nov 15, 2021
Messages
161
Just came across the Kubernetes equivalent to the

Code:
docker load image.tar


command and apparently it's

Code:
k3s ctr images import image.tar


So now the question is, which is the correct, better, approved, recommended, etc. approach on TrueNAS Scale?

Thanks,
Harry
 

mervincm

Contributor
Joined
Mar 21, 2014
Messages
157
IX will often suggest that you find a way to live with what you can do via the GUI. IMHO what is suggested via that link is a supported approach, and thus would be recommended over what you are proposing.

PS, if you really want to, you can always add your custom container to docker hub :)

PSS I am also at the start of my TrueNAS Scale journey, so I suggest seeking other more informed opinions.
 
Top