OVOOO工具集
-
Docker Run转Compose
Docker Run 命令
清空
docker run -d --name nginx-demo -p 8080:80 -e NGINX_HOST=localhost -v ./html:/usr/share/nginx/html:ro --restart unless-stopped nginx:alpine
Docker Compose
复制
下载
services: nginx-demo: container_name: nginx-demo restart: unless-stopped image: nginx:alpine ports: - 8080:80 environment: NGINX_HOST: localhost volumes: - ./html:/usr/share/nginx/html:ro