Docker: Improved Control Over Local Image Usage with FROM Command #544
Labels
build
Improvements to developers build experience with Docker
community_new
New idea raised by a community contributor
Tell us about your request
I'm requesting a new feature that allows users to have improved control over the usage of local images with the
FROM
command in Dockerfiles.Dockerfile
:In this example, Docker would exclusively use the local image named "my-local-image," and if it does not exist locally, it would raise an error instead of trying to pull it from a remote registry.
Which service(s) is this request for?
Docker.
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
Currently, Docker automatically attempts to pull images from a registry if they are not found locally.
The existing behavior today (as far as I know) with this workflow involving local images also leaves a possible attack vector open because of coincidental "namesquatting" on a/the registry; meaning, you currently have to care about the names of remote things when you know you only want to deal with local things.
Are you currently working around the issue?
Tagging local images with non-existent repository names.
The text was updated successfully, but these errors were encountered: