<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>docker on Tequila's 学习笔记</title><link>https://latnx.github.io/docs/notes/d-205f3859abe469be/d-0c68cd0378be49e1/</link><description>Recent content in docker on Tequila's 学习笔记</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><copyright>© 2026 Tequila</copyright><atom:link href="https://latnx.github.io/docs/notes/d-205f3859abe469be/d-0c68cd0378be49e1/index.xml" rel="self" type="application/rss+xml"/><item><title>DokcerFile</title><link>https://latnx.github.io/docs/notes/d-205f3859abe469be/d-0c68cd0378be49e1/n-0b2bfbac69d77923/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://latnx.github.io/docs/notes/d-205f3859abe469be/d-0c68cd0378be49e1/n-0b2bfbac69d77923/</guid><description>定义一个镜像怎么构建
RUN：构建镜像时执行命令 CMD：容器启动时执行命令 FROM python:3.11 WORKDIR /app COPY . . RUN pip install -r requirements.txt CMD [&amp;#34;python&amp;#34;, &amp;#34;app.py&amp;#34;] 用于：docker build -t &amp;lt;镜像名&amp;gt; &amp;lt;镜像位置&amp;gt;
docker compose # 定义多个容器怎么一起运行
services: app: build: . ports: - &amp;#34;3000:3000&amp;#34; db: image: mysql environment: MYSQL_ROOT_PASSWORD: 123456</description></item></channel></rss>