Move Docker image to ubuntu core

Hello, I booted Ubuntu Core on a machine and I accessed it via ssh. Afterwards, I installed the Docker snap and now I am trying to load a Docker image from a tar archive. However, I don’t really now how to do this.

How can I move my 12 Gb image to the Ubuntu Core filesystem, so as to be able to run the docker load command? Can I create a custom Ubuntu Core image with the tar archive already inside the file system? If the answer is yes, how can I do that?

Thank you in advance

  1. I think SCP should do the trick.
  2. Yes, it’s possible to do so using custom gadget snap. Here you can include docker snap and more. https://ubuntu.com/core/docs/gadget-building Also those two articles might be helpful to integrate more between docker and snaps: Run a Docker container | Ubuntu https://ubuntu.com/core/docs/docker-deploy In your case, I think custom docker-based snap might be the solution.
1 Like