Difference between revisions of "Docker basics"

From Notes_Wiki
(Created page with "<yambe:breadcrumb>Docker|Docker</yambe:breadcrumb> =Docker basics= ==Run a docker image== To run a docker image use #:<pre> #:: docker run hello-world #:</pre> Docker firs...")
 
m
Line 4: Line 4:
==Run a docker image==
==Run a docker image==
To run a docker image use
To run a docker image use
#:<pre>
<pre>
#::    docker run hello-world
    docker run hello-world
#:</pre>
</pre>
Docker first searches for image locally.  If it is not found then it will download the image from docker hub and run it.
Docker first searches for image locally.  If it is not found then it will download the image from docker hub and run it.


Line 12: Line 12:
==See local docker images in cache==
==See local docker images in cache==
To see local docker images in cache use:
To see local docker images in cache use:
#:<pre>
<pre>
#::    docker images
    docker images
#:</pre>
</pre>





Revision as of 13:31, 18 August 2015

<yambe:breadcrumb>Docker|Docker</yambe:breadcrumb>

Docker basics

Run a docker image

To run a docker image use

    docker run hello-world

Docker first searches for image locally. If it is not found then it will download the image from docker hub and run it.


See local docker images in cache

To see local docker images in cache use:

    docker images


Docker basics are learned from https://docs.docker.com/linux/started/



<yambe:breadcrumb>Docker|Docker</yambe:breadcrumb>