From 9f0039c27c8a5763b43fdb23701debb4f0c28d4a Mon Sep 17 00:00:00 2001 From: test2 Date: Sun, 8 Mar 2020 22:59:31 +0200 Subject: [PATCH] docker 3 --- DockerSwarm/Intro-Cloud.adoc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/DockerSwarm/Intro-Cloud.adoc b/DockerSwarm/Intro-Cloud.adoc index 13b586c..26a9498 100644 --- a/DockerSwarm/Intro-Cloud.adoc +++ b/DockerSwarm/Intro-Cloud.adoc @@ -193,6 +193,26 @@ This command is used to display all the images currently installed on the system - Created − The number of days since the image was created. - Virtual Size − The size of the image. +==== Docker Hub + +Docker Hub is a registry service on the cloud that allows you to download Docker images that are built by other communities. You can also upload your own Docker built images to Docker hub. + +To run apache, you need to run the following command − + +.run docker image from Docker Hub +[source,sh] +---- +docker run -p 8080:80 apache + +Note the following points about the above command − + + + Here, apache is the name of the image we want to download from Docker hub and install on our Ubuntu machine. + + -p is used to map the port number of the internal Docker image to our main Ubuntu server so that we can access the container accordingly. +---- + + === Containers