DELAPARRA
Index
Color
NL
Category: Docker

pull

Explained by Updated

What is pull?

pull: Download an image from a registry to your local machine. docker run pulls automatically if the image is missing. docker pull downloads an image from a registry to your machine, such as docker pull postgres:16. docker run pulls automatically when the image is missing, so you mostly use pull to fetch a newer version explicitly.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about pull

How is pull used in practice?

Docker only downloads layers you do not already have, so pulling an update to an image you have used before is usually quick.

What should you keep in mind with pull?

Be specific with tags. docker pull postgres fetches latest, which can jump to a new major version without warning. A precise tag such as postgres:16.4 gives repeatable results. For private registries, log in first with docker login. On servers, pull the new image before stopping the old container, so the switch takes seconds instead of waiting for a download during downtime.

What does an example of pull look like?

docker pull postgres:16

At a glance

CategoryDocker
Explained by
Updated

More Docker terms

All terms starting with P

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.