Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Created February 5, 2021 14:45
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 zulhfreelancer/164dfb9579f11c867eb8ff371775fb83 to your computer and use it in GitHub Desktop.
Save zulhfreelancer/164dfb9579f11c867eb8ff371775fb83 to your computer and use it in GitHub Desktop.
How to use TTL.sh (ephemeral Docker image registry) // https://ttl.sh
UUID=$(uuidgen | awk '{print tolower($0)}') // generate UUID like "2e98d62e-a9e9-4397-a783-86458972fecc"
IMG=ttl.sh/${UUID}:1h // generate full image path like "ttl.sh/2e98d62e-a9e9-4397-a783-86458972fecc:1h"
docker build -t ${IMG} .
docker push ${IMG}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment