0

I am a newbie and I supposed to create a docker container with an image that my friend pass me using a usb drive. I get the procedure to how to create the container after the image is uploaded on my docker (i.e when I can see it with the command docker image ls) but I do not know how to upload this image which is on a usb stick to my docker.

mzjn
  • 48,958
  • 13
  • 128
  • 248
  • What format is it in? `.tar`? – sneep Apr 04 '18 at 14:40
  • yes it is .tar image – noname Apr 04 '18 at 14:41
  • 2
    Look into `docker import` then – sneep Apr 04 '18 at 14:42
  • ohh yes I just get to upload my image with that, thanks a lot @sneep – noname Apr 04 '18 at 15:05
  • Perhaps `docker load` might be better. See e.g. here for differences: https://stackoverflow.com/questions/36925261/what-is-the-difference-between-import-and-load-in-docker – sneep Apr 04 '18 at 15:15
  • Actually docker load worked better for me (i dnt understand the details too much), but when i use the image I upload with docker import to create a container I was getting errors, on the other hand the image I upload with docker load worked smooth to create a container. – noname Apr 04 '18 at 16:00

1 Answers1

1

it's simple as docker load < imageFile.tar

hichamx
  • 794
  • 3
  • 7
  • 18