Issue
I'm working on a dockerfile.
I just realised that I've been using FROM with indexed images all along.
So I wonder:
- How can I use one of my local (custom) images as my base (
FROM) image withoutpushingit to the index?
Solution
You can use it without doing anything special. If you have a local image called blah you can do FROM blah. If you do FROM blah in your Dockerfile, but don't have a local image called blah, then Docker will try to pull it from the registry.
In other words, if a Dockerfile does FROM ubuntu, but you have a local image called ubuntu different from the official one, your image will override it.
Answered By - jpetazzo Answer Checked By - Katrina (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.