In general, Container is a set of operating systems that included the environment for running applications like Runtime, Service App, Database, etc. Actually, we don't need to install OS, Database, and Server Applications anymore. We call it the Container in Docker.
Docker is a standard platform to create and manage this Container.
Just keep in mind that simple knowledge, let us make some containers in docker from the images registry.
Type docker images to show the list of images in local
After this, we need to make a container in the local, and we must expose the port to enable users to access this container.
Type docker container create --name mongoserver1 -p 8080:27017 mongo:4.1 . We expose internal port container 27017 to be external port 8080. All users accessing port 8080 to use app service in the container.
Type docker container ls only.
0 komentar:
Posting Komentar