Get docker run command from container
Project description
docker recreate tools
This is a small tool to print re-create existance docker container run commands.
Install
# through pip
pip install docker-recreate
# using curl
curl https://raw.githubusercontent.com/jeffrey4l/docker-recreate/master/main.py \
-o /usr/local/bin/docker-recreate
chmod +x /usr/local/bin/docker-recreate
# for China
curl https://raw.fastgit.org/jeffrey4l/docker-recreate/master/main.py \
-o /usr/local/bin/docker-recreate
chmod + /usr/local/bin/docker-recreate
Usage
$ docker-recreate -h
usage: docker-recreate [-h] [--format {csv,json,oneline,string,yaml}] container [container ...]
positional arguments:
container
optional arguments:
-h, --help show this help message and exit
--format {csv,json,oneline,string,yaml}, -f {csv,json,oneline,string,yaml}
$ docker-create grafana
docker \
run \
-d \
--name grafana \
--network host \
--restart always \
-v grafana:/var/lib/grafana:rw \
grafana/grafana:8.0.3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docker-recreate-1.3.2.tar.gz
(3.4 kB
view hashes)