Using local docker images

Hello, I am new to nomad and would like to use local docker images during development.

As I understand it, using the Docker driver will cause nomad to pull the specified image from dockerhub. When developing locally, especially when iterating, waiting for the image to get built + pushed to dockerhub + pulled back again is not great for me since I don’t have the fastest internet in the world. After surveying the github issues page and this site as well, I haven’t found any solutions to this.

Is there really not a way to use images I already have on the host computer? If so, why not?

Hi @nate-sys you can load local images by using the load configuration option.

Thanks @seth.hoenig ! However, I think my initial understanding was wrong.

I mistakenly thought that in order to use an image that I have locally, I had to push it to a registry, and then nomad would pull it when it needs it. Turns out, nomad just uses the image that’s already on the host machine’s docker engine… I don’t know how that slipped by me.

Turns out, nomad just uses the image that’s already on the host machine’s docker engine…

This is what I do for localdev, fwiw.