Adding docker-cli run param to set MAC address

Signed-off-by: Malte Janduda <mail@janduda.net>
This commit is contained in:
Malte Janduda
2014-11-01 15:35:09 +01:00
parent 4d4a7b81bf
commit f2df38050e
11 changed files with 87 additions and 9 deletions
@@ -516,6 +516,7 @@ Creates a new container.
--lxc-conf=[] (lxc exec-driver only) Add custom lxc options --lxc-conf="lxc.cgroup.cpuset.cpus = 0,1"
-m, --memory="" Memory limit (format: <number><optional unit>, where unit = b, k, m or g)
--name="" Assign a name to the container
--mac-address="" Set the container's MAC address
--net="bridge" Set the Network mode for the container
'bridge': creates a new network stack for the container on the docker bridge
'none': no networking for this container
@@ -867,6 +868,13 @@ straightforward manner.
$ sudo docker inspect --format='{{.NetworkSettings.IPAddress}}' $INSTANCE_ID
**Get an instance's MAC Address:**
For the most part, you can pick out any field from the JSON in a fairly
straightforward manner.
$ sudo docker inspect --format='{{.NetworkSettings.MacAddress}}' $INSTANCE_ID
**List All Port Bindings:**
One can loop over arrays and maps in the results to produce simple text