Skip to content

Instantly share code, notes, and snippets.

@dqminh
Created April 7, 2015 16:44
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 dqminh/a7dc435bcb8fa7489ec3 to your computer and use it in GitHub Desktop.
Save dqminh/a7dc435bcb8fa7489ec3 to your computer and use it in GitHub Desktop.
docker git:master ❯ sudo service docker restart
docker stop/waiting
docker start/running, process 19816
docker git:master ❯ cat /proc/sys/net/ipv4/ip_local_port_range
32768 61000
docker git:master ❯ docker run -P -p 80 -p 32768:8080 -d busybox top
6315c5cb8192e6d414065c73967605eccf48c1976c4c541a9e8afb6af0fd8aad
FATA[0000] Error response from daemon: Cannot start container 6315c5cb8192e6d414065c73967605eccf48c1976c4c541a9e8afb6af0fd8aad: Bind for 0.0.0.0:32768 failed: port is already allocated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment