自动将Docker命令转换成Docker Composer yml文件

date
May 22, 2022
slug
tip-docker-composer-yml-auto-convert
status
Published
summary
小技巧
tags
tip
type
Post
URL

https://www.composerize.com/

notion image
 

Solution

  • local自建
npm install composerize -g
# composerize docker 完整命令
composerize docker run -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro --restart always --log-opt max-size=1g nginx
notion image

Screenshots

 

© Ying Bun 2021 - 2024