0% found this document useful (0 votes)
26 views2 pages

Docker Hub

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

Docker Hub

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Docker hub is a cloud-based registry service which allows you to link to code

repositories,
build your images and test them, stores manually pushed images, and links to Docker
cloud so you can deploy images to your hosts.
It provides a centralized resource for container image discovery, distribution and
change
management, user and team collaboration, and workflow automation throughout the
development pipeline.
Question: What is Docker Swarm?
Docker Swarm is native clustering for Docker. It turns a pool of Docker hosts into
a single,
virtual Docker host.
Docker Swarm serves the standard Docker API, any tool that already communicates
with a
Docker daemon can use Swarm to transparently scale to multiple hosts.
61/71
I will also suggest you to include some supported tools:
Dokku
Docker Compose
Docker Machine
Jenkins
Questions: What is Dockerfile used for?
A Dockerfile is a text document that contains all the commands a user could call on
the
command line to assemble an image.
Using docker build users can create an automated build that executes several
commandline
instructions in succession.
Question: How is Docker different from other container technologies?
Docker containers are easy to deploy in a cloud. It can get more applications
running on the
same hardware than other technologies.
It makes it easy for developers to quickly create, ready-to-run containerized
applications
and it makes managing and deploying applications much easier. You can even share
containers with your applications.
Question: How to create Docker container?
We can use Docker image to create Docker container by using the below command:
1 docker run -t -i command
name
This command will create and start a container. You should also add, If you want to
check
the list of all running container with the status on a host use the below command:
1 docker ps -
a
Question: How to stop and restart the Docker container?
In order to stop the Docker container you can use the below command:
1 docker stop container
ID
Now to restart the Docker container you can use:
62/71
1 docker restart container
ID
Question: What is the difference between docker run and docker create?
The primary difference is that using ‘docker create’ creates a container in a
stopped state.
Bonus point: You can use ‘docker create’ and store an outputed container ID for
later
use. The best way to do it is to use ‘docker run’ with --cidfile FILE_NAME as
running it
again won’t allow to overwrite the file

You might also like