Skip to content

Docker的使用技巧

技巧

1.运行一个没有服务的容器

Dockerfile
FROM debian:latest
# 在 Dockerfile 末尾添加
CMD ["tail", "-f", "/dev/null"]