Docker & Container Runtimes

Display a list of available operating systems on Vultr in pretty JSON

Vultr, a Cloud hosting services provider, supports Docker Machine through their own Docker Machine driver, which you can install on Linux Mint 18 and Ubuntu 16.04 using this guide.

With the driver installed, you may then provision Dockerized hosts, or machines, on the Vultr platform using the docker-machine create command. A list of available operating systems on Vultr is accessible via this URL. That’s rendered by the browser in a JSON format that’s painful to read.

To obtain a JSON output that’s a lot more easy on the eyes, use the following curl command.

The output should be like the one shown below. Note that each operating system has an id.

Knowing the id of an operating system, you can now specify it when creating a Dockerized host on the Vultr platform. For example, to create a Dockerized host with Debian 8 Jessie, whose id is 193, as the base operating system, you would type the following command.

Related Post:  Docker Swarm Load Balancing with NGINX and NGINX Plus

A separate article on how to provision Dockerized hosts on Vultr is about to be published later today, so stay tuned!
Vultr Cloud banner

Related Post:  Building Rancher Catalog Templates from Scratch : Part 1
JOIN OUR NEWSLETTER
Enjoying the article you're reading? Subscribe to our newsletter to receive updates and new articles as soon as they are published - right in your Inbox
We hate spam. Your email address will not be sold or shared with anyone else.
Please share:
Tags:

We Recommend These Vendors and Free Offers

Launch an SSD VPS in Europe, USA, Asia & Australia on Vultr's KVM-based Cloud platform starting at $5:00/month (15 GB SSD, 768 MB of RAM).

Deploy an SSD Cloud server in 55 seconds on DigitalOcean. Built for developers and starting at $5:00/month (20 GB SSD, 512 MB of RAM).

Want to become an expert ethical hacker and penetration tester? Request your free video training course of Online Penetration Testing and Ethical Hacking

Whether you're new to Linux or are a Linux guru, you can learn a lot more about the Linux kernel by requesting your free ebook of Linux Kernel In A Nutshell.


Leave a Comment

Your email address will not be published. Required fields are marked *

*