Skip to content

Instantly share code, notes, and snippets.

@ghiculescu
Created June 21, 2021 16:11
Show Gist options
  • Save ghiculescu/2a05b2c1179a46f4c2a3ec627e1b16a8 to your computer and use it in GitHub Desktop.
Save ghiculescu/2a05b2c1179a46f4c2a3ec627e1b16a8 to your computer and use it in GitHub Desktop.
require "json"
require "net/http"
image = "ruby"
uri = URI("https://registry.hub.docker.com/v1/repositories/#{image}/tags")
json = Net::HTTP.get(uri)
# json == ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment