Skip to content

Instantly share code, notes, and snippets.

@marmotte
marmotte / docker_run
Created Jun 13, 2014
dockerコンテナ起動時にコンテナに振り当てられたIPを取得する docker runのラッパー
View docker_run
#/bin/bash
echo $@
CONTAINER_ID=$(docker run $@)
docker inspect --format='{{.NetworkSettings.IPAddress}}' $CONTAINER_ID
You can’t perform that action at this time.