【CMD】Docker的基本概念

2024-02-02  本文已影响0人  盐果儿

Docker image:

1. A Docker image is a lightweight, standalone, and executable package that includes everything needed to run a piece of software, including the code, runtime, libraries, and system tools.

2. Images are built from a set of instructions defined in a Dockerfile and are used to create containers.

Docker container:

1. A Docker container is a runnable instance of a Docker image. It encapsulates the application code and its dependencies, isolated from the host system and other containers.

2. Containers are created from Docker images using the docker runcommand.

上一篇 下一篇

猜你喜欢

热点阅读