How To Download Ubuntu Docker Image
For example to download the latest official build of the ubuntu 18 04 image you would use the following image pull command.
How to download ubuntu docker image. Look through the list and copy the name of the image you d like. To push your image first log into docker hub. Verify docker installation working with docker images. Moreover you can download a docker image by running command docker image pull follow with the name of the image. For example following command will download the ubuntu image to the local system.
As can be seen the new custom docker image nginx image has been. To run a docker container first you need to download an image from docker hub provides free images from its repositories. Below is the result you will get. Using images will allow you to see the name of the images on your system. The pull sub command will help download the image you have identified on your computer.
To push an image to docker hub or any other docker registry you must have an account there. When not specifying a tag docker pulls the latest ubuntu image which at the time of writing this article is 18 04. How to clean up unused docker containers images and volumes. Download a docker image in ubuntu. The command will download the base image ubuntu 20 04 and create a new custom image with the name nginx image.
You can either create your custom images or you can only use those created by others and published in the docker hub the world s largest library and community for container images. To learn how to create your own private docker registry check out how to set up a private docker registry on ubuntu 14 04. For example to download a docker image called centos 7 issue the following command. This section shows you how to push a docker image to docker hub. To delete and erase an existing image you ll first need to run the images command.
This will show an output similar to. You can search for an centos image in the docker hub with the. In order to download the official ubuntu image execute the following command. Getting rid of an installed docker image on linux is done with the rmi command. Using tags we can download a specific version of image to our local system you can find available tags from the docker hub.