0% found this document useful (0 votes)
58 views

Docker PDF

Images are templates used to create containers which run applications. The Docker daemon is a background service on the host that manages building images and running containers. To build an image, use the docker build command specifying a repository, tag, and current directory; then test it by running a container from the new image and accessing its published port.

Uploaded by

magillani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

Docker PDF

Images are templates used to create containers which run applications. The Docker daemon is a background service on the host that manages building images and running containers. To build an image, use the docker build command specifying a repository, tag, and current directory; then test it by running a container from the new image and accessing its published port.

Uploaded by

magillani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Docker Terminologies

o Images – Images are templates for the docker containers.


o Containers – Created from Docker images and run the actual application.
o Docker Daemon – The background service running on the host that manages the building,
running the containers.

Build image:

$ docker build -t [repository/image_name]:[tag] .

Test the newly created image by creating a container.

$ docker run -it -d -P [image id]

$ curl [container IP]:80

You might also like