|
@@ -45,14 +45,26 @@ At present docker-rerun supports copying a number of commonly used arguments:
|
45
|
45
|
If a container uses an argument that's not supported yet, it will be silently
|
46
|
46
|
dropped when rerunning.
|
47
|
47
|
|
48
|
|
-
|
49
|
|
-The following arguments can be used when executing `docker-rerun` to modify
|
50
|
|
-the resulting container:
|
51
|
|
-
|
52
|
|
- * `--image <image>` - changes the image that will be used. You can specify
|
53
|
|
- tags (`name:tag`) or digests (`name@digest`) as with `docker run`.
|
54
|
|
- * `-p <port>` or `--port <port>` - expose additional ports. Same format
|
55
|
|
- as `docker run`'s `-p` option.
|
|
48
|
+## Arguments
|
|
49
|
+
|
|
50
|
+The built-in help shows all available arguments. `--dry-run` and `--pull`
|
|
51
|
+affect the behaviour of `docker-rerun`; other options allow modification
|
|
52
|
+of the container's parameters.
|
|
53
|
+
|
|
54
|
+ usage: docker-rerun [-h] [-d] [--pull] [--image IMAGE] [--port PORT] container
|
|
55
|
+
|
|
56
|
+ Reruns docker containers with different parameters.
|
|
57
|
+
|
|
58
|
+ positional arguments:
|
|
59
|
+ container The container to rerun
|
|
60
|
+
|
|
61
|
+ optional arguments:
|
|
62
|
+ -h, --help show this help message and exit
|
|
63
|
+ -d, --dry-run Don't actually re-run the container, just print what
|
|
64
|
+ would happen.
|
|
65
|
+ --pull Docker pull the image before re-running the container
|
|
66
|
+ --image IMAGE Image to use in place of the original
|
|
67
|
+ --port PORT, -p PORT Additional port to expose
|
56
|
68
|
|
57
|
69
|
## What's not done yet
|
58
|
70
|
|