Skip to content

Instantly share code, notes, and snippets.

@poldeuce-sys
Last active November 2, 2017 07:49
Show Gist options
  • Save poldeuce-sys/b19d7a196c70d82d8fa7b62cec356426 to your computer and use it in GitHub Desktop.
Save poldeuce-sys/b19d7a196c70d82d8fa7b62cec356426 to your computer and use it in GitHub Desktop.
Some useful things with docker
When building a container and having some issues, you can always launch interactively with
(--rm removes the container when you are done so that you can remove the image if you need to rebuild):
docker run --rm -it --entrypoint=/bin/bash <my-container>
Remember that the default 'bridge' network does not allow hostname resolution. To resolve host names, you need to
create a user network and ensure the containers attatch to that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment