Skip to content

Instantly share code, notes, and snippets.

@nicolasramy
Last active December 22, 2015 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolasramy/6392732 to your computer and use it in GitHub Desktop.
Save nicolasramy/6392732 to your computer and use it in GitHub Desktop.

Docker

Installation

If https failed

E: The method driver /usr/lib/apt/methods/https could not be found.

Install this missing package

apt-get install apt-transport-https

Run

docker run -i -t ubuntu:latest /bin/bash

Get IP address

docker inspect --format '{{ .NetworkSettings.IPAddress }}' $CONTAINER_NAME

or

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