docker run -d --name my_container -p 8080:80 nginx:alpine
-d: 后台运行 --name: 指定容器名称 -p: 端口映射(宿主机端口:容器端口)