Application deployment is becoming more and more complex. Getting a dedicated server, installing, setting up and maintaining applications is just the beginning. The risk of system failure always exists in the face of complex and tightly coupled systems, different services and programming languages.
Docker makes software delivery easy again. It allows you to set up Everything — the software you develop, the operating system it runs, the services it needs, modules, and backend tools (such as cron jobs). All of this can be set up in minutes and ensures that it works as well on the target system as your development environment. Our Docker quick lookup table brings together the commands you most likely need in your Docker workflow so that you can focus on your work rather than searching Google’s deepest, darkest corners. Enjoy it!
Get quick lookup table
Want to learn more about Docker? Please check the following link:
Docker is an open source platform for automating the deployment, scaling and management of applications. It uses containerization technology to bundle applications and their dependencies into a single object. This allows the application to run reliably and consistently on any Docker-supported system, regardless of what custom settings the system may have different from the machine where the application was developed. Docker is important because it simplifies the process of managing and deploying applications, makes it easier for developers to work, and makes it easier for the system to run applications.
Docker can be installed on a variety of operating systems, including Windows, macOS, and various Linux distributions. The installation process varies by operating system. Detailed descriptions for each operating system can be found in the official Docker documentation.
Docker image is a lightweight, standalone, executable package that contains everything you need to run the software, including code, runtime, libraries, environment variables, and configuration files. Docker images are built from Dockerfile, a script that contains a collection of commands Docker used to build images.
Docker container is a runtime instance of the Docker image. In other words, it is the execution of the mirror, or turns the mirror into reality. The actual instance of the container running the application. The container contains an application and all its dependencies. It shares the kernel with other containers and runs as an isolated process in the user space of the host operating system.
Docker containers are created by running Docker images. The docker run
command is used to create containers from a mirror. The syntax of this command is docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]
.
Docker container can be stopped using the docker stop
command followed by the container ID. The syntax of this command is docker stop [OPTIONS] CONTAINER [CONTAINER...]
.
Docker containers can be deleted using the docker rm
command followed by the container ID. The syntax of this command is docker rm [OPTIONS] CONTAINER [CONTAINER...]
.
You can use the docker ps -a
command to list all Docker containers, including running and stopped containers.
The Docker image can be extracted from the Docker registry using the docker pull
command followed by the image name. The syntax of this command is docker pull [OPTIONS] NAME[:TAG|@DIGEST]
.
The Docker image can be pushed to the Docker registry using the docker push
command followed by the image name. The syntax of this command is docker push [OPTIONS] NAME[:TAG]
.
The above is the detailed content of Grab Our Free Printable Docker Cheat Sheet. For more information, please follow other related articles on the PHP Chinese website!