Browse Source

docker 3

master
test2 4 years ago
parent
commit
9f0039c27c
  1. 20
      DockerSwarm/Intro-Cloud.adoc

20
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

Loading…
Cancel
Save