Configuring a static IP on HypriotOS for the Raspberry Pi

How you configure a static IP on the Pi changed between Wheezy and Jessie, and it seems on Hypriot’s prebuilt images for running Docker on the Pi, it’s a slight variation. Edit /etc/network/interfaces.d/eth0, comment out the DHCP line: iface eth0 inet dhcp and add: iface eth0 inet static address your-static-ip gateway your-gateway-ip #google dns servers domain_name_servers=8.8.8.8, …