Skip to content

Latest commit

 

History

History

runlike

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

lukaszlach / clips / runlike

Call runlike on any container to get the command line necessary to run a copy of it.

docker runlike CONTAINER

Install

$ docker clip add lukaszlach/clips:runlike

Usage

If you have the container running Alpine:

$ docker run -d --name alpine alpine:3.9 sleep 1h

You can use docker runlike to get the command needed to create an exact copy of the container. In case the container was ran with docker-compose you will get the command you have never had a chance to see.

$ docker runlike alpine
docker run --name=alpine --hostname=19fd796d28e6 --env="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" --restart=no --detach=true alpine:3.9 sleep 1h