docker前后端分离
Detached mode, shown by the option --detach
or -d
, means that a Docker container runs in the background of your terminal. It does not receive input or display output.
选项--detach
或-d
显示的分离模式表示Docker容器在终端的后台运行。 它不接收输入或显示输出。
docker run -d IMAGE
If you run containers in the background, you can find out their details using docker ps
and then reattach your terminal to its input and output.
如果在后台运行容器,则可以使用docker ps
找出它们的详细信息,然后将终端重新连接到其输入和输出。
Attach to and detach from a running container | Docker Docs
连接到正在运行的容器或从容器中分离 Docker文件
Detached vs foreground | Docker docs
独立式与前景式| Docker文档
Docker is an open platform to build, ship, and run distributed applications. It is written in Go. It was first released in 2013 and is developed by Docker, Inc.
Docker是一个开放的平台,用于构建,交付和运行分布式应用程序。 它用Go语言编写。 它于2013年首次发布,由Docker,Inc.开发。
Docker is used to run packages called “containers”. Containers are isolated from each other and from the OS. These are more lightweight than virtual machines as they do not use the host machine to run an operating system.
Docker用于运行称为“容器”的软件包。 容器彼此隔离,并且与操作系统隔离。 这些虚拟机比虚拟机轻巧,因为它们不使用主机来运行操作系统。
Containerization, which is a way of deploying and running applications, runs isolated services which run natively on the Linux kernel. Memory can be set manually for each container in Docker.
容器化是一种部署和运行应用程序的方法,它运行在Linux内核上本地运行的隔离服务。 可以为Docker中的每个容器手动设置内存。
Docker is used to simplify configurations, and ensure a smooth continuous integration and deployment flow. Specific containers can be specified for development, staging, and production environments. A true implementation of a container in production, according to the Docker manual, is to run it as a service, using the docker-compose.yml
file for setup. This is a YAML file that defines how Docker containers should behave in production.
Docker用于简化配置,并确保平稳的连续集成和部署流程。 可以为开发,暂存和生产环境指定特定的容器。 根据Docker手册,在生产环境中容器的真正实现是使用docker-compose.yml
文件进行设置,将其作为服务运行。 这是一个YAML文件,用于定义Docker容器在生产中的行为。
One of Docker’s biggest advantages is that it can be used by a team using different operating systems to build projects without needing to worry about software conflicts.
Docker的最大优点之一是,使用不同操作系统的团队可以使用它来构建项目,而不必担心软件冲突。
Ubuntu: sudo apt install docker
Ubuntu: sudo apt install docker
RedHat: yum install docker-ce
RedHat: yum install docker-ce
Windows / macOS: Download
Windows / macOS: 下载
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
For download and documentation check the docker official site: Docker official site
有关下载和文档的信息,请检查Docker官方站点 : Docker官方站点
翻译自: https://www.freecodecamp.org/news/docker-detached-mode-explained/
docker前后端分离
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态