Write what you learned about docker anyway \ (second ) -Qiita
A method of managing many containers across multiple nodes Docker Swarm --Docker Compose allows you to manage multiple containers across multiple servers, not just a single server --In addition to managing multiple containers, there are also functions such as increasing / decreasing containers, arranging containers and distributing loads to efficiently use node resources.
--A collection of file systems and applications to be executed that make up the Docker container --The template used to create the container
A file system and application running that was created and embodied based on a Docker image
--Docker image contains Ubuntu file system and running application
FROM The one that is the basis of the docker image
RUN
Commands to be executed inside the Docker container when building a Docker image
COPY Instructions for copying files and directories into a Docker container on the host machine running Docker
docker image build -t image name[:Tab name]Dockerfile deployment directory path
Any image name can be specified for the -t option. Optional but almost mandatory
ENTRYPOINT
--If you specify ENTRYPOINT, the CMD argument becomes the argument of the file executed by ENTRYPOINT. --ENTRYPOINT can be useful when the image creator wants to limit the use of the container to some extent.
LABEL Enter the author name of the image
ENV Specify environment variables that can be used in the Docker container generated based on the Dockerfile
ARG Used to embed information at build time
--In the case of an application that receives HTTP requests, it is necessary to make the request coming from outside the container reach the application running inside the container. --In port forwarding, you can link to a container port and forward communications coming from outside the container to the container port.
dokcer container run -p {Host side port}:{Container side port} {Various commands below}
Recommended Posts