The docker repositories contains multiple images. Is it possible to just pull the specific image from Repository.
When I use:
docker pull ubuntu
It pulls down around 8-10 different versions of ubuntu.
In order to pull images from your private repository, you'll need to login to Docker. If no registry URI is specified, Docker will assume you intend to use or log out from Docker Hub. Triton comes with several images built-in. You can view the available list with triton images .
If you want to get the image on your other machine and don't want to build it again then the ideal way is push the docker image created on your Ubuntu server to docker hub repository. Then you can simply do the docker pull to pull the image at any machine.
To push an image to Docker Hub, you must first name your local image using your Docker Hub username and the repository name that you created through Docker Hub on the web. You can add multiple images to a repository by adding a specific :<tag> to them (for example docs/base:testing ).
By default, docker pull pulls a single image from the registry. A repository can contain multiple images. To pull all images from a repository, provide the -a (or --all-tags ) option when using docker pull .
If there's a specific image that's tagged, you could use the --tag= (or -t) operator to pull the specific image you're looking for. There's a shorthand form for the command as well, which uses just a colon between the image name and the tag.
So if you want the version of ubuntu that's tagged as quantal, you could use:
docker pull ubuntu:quantal
The longer forms would be:
docker pull --tag="quantal" ubuntu
docker pull --t quantal ubuntu
This will still pull the historical layers used to build the final image, but will be a smaller subset than all of the layers for ubuntu.
[Updated to include Ben's note on shorthand from below. Thanks!]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With