Skip to content

Instantly share code, notes, and snippets.

View gregor-j's full-sized avatar

Gregor gregor-j

View GitHub Profile
@gregor-j
gregor-j / docker-hosts-format.md
Last active December 20, 2021 15:36
docker network containers in /etc/hosts format

Print a list of docker containers in hosts style

It's not a problem to resolve a hostname or an alias inside a network of docker containers, but there's currently no tool to export a /etc/hosts style list of docker container IPs and their hostnames and aliases for your docker host.

Step 1 format

Format the docker inspect output in /etc/hosts style.

@gregor-j
gregor-j / keybase.md
Created November 29, 2016 18:33
keybase.md

Keybase proof

I hereby claim:

  • I am gregor-j on github.
  • I am grej (https://keybase.io/grej) on keybase.
  • I have a public key ASAjnfvqCMRDTeZyLtiwMVGtM2HNlQAUJOf2OQFmMTzqQgo

To claim this, I am signing this object: