项目
在 GitHub 查看
bcicen/docker-replay
关于
Generate docker commands to rerun existing containers
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文docker-replay
Generate docker run command and options from running containers
Quickstart
docker-replay can be most easily run using the official image build:
docker run --rm -ti \
-v /var/run/docker.sock:/var/run/docker.sock \
bcicen/docker-replay \
-p <container name or id>
Installing
pip install docker-replay
Usage
docker-replay -p <container name or id>
output:
docker run --env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
--hostname test \
--interactive \
--tty \
--add-host google.com:127.0.0.1 \
--memory 128m \
--memory-swap 256m \
--memory-swappiness -1 \
--name test \
--expose 80/tcp \
--restart on-failure:0 \
--entrypoint "echo" \
alpine:latest \
hello
Options
| Option | Description |
|---|---|
| --debug, -d | enable debug output |
| --pretty-print, -p | pretty-print output |
探索相关项目
加载中…