https://github.com/swipely/dockly/blob/add-docker-registry-options_tr-pQvB3hkH/lib/dockly/docker.rb#L134