Skip to content

Instantly share code, notes, and snippets.

@marmotte marmotte/docker_run

Created Jun 13, 2014
What would you like to do?
dockerコンテナ起動時にコンテナに振り当てられたIPを取得する docker runのラッパー
echo $@
CONTAINER_ID=$(docker run $@)
docker inspect --format='{{.NetworkSettings.IPAddress}}' $CONTAINER_ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.