docker run 生成 docker-compose


本文由 简悦 SimpRead 转码, 原文地址 github.com

composerize

[

](https://www.npmjs.com/package/composerize)[

](https://twitter.com/mark_larah?ref_src=github_composerize)

http://composerize.com - Turns docker run commands into docker-compose files!

CLI

composerize can be run in the cli.

npm install composerize -g to install, and run as such:

$ composerize docker run -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro --restart always --log-opt max-size=1g nginx

Contributing

  • Clone a fork of the repo and install the project dependencies by running yarn
  • Make your changes, and build the project by running make build
  • Test your changes with make test

yarn version

Needs yarn@1.19.1. See yarnpkg/yarn#7734.

Maintainers


yg9538 2022年10月16日 21:02 1308 收藏文档