Files
play-with-docker/handlers/get_instance_images.go
Jonathan Leibiusky @xetorthio 438fe9f6e7 Add SessionProvisioner and InstanceProvisionerFactory
Remove AllowedImages and IsDockerHost as it is not really being used for
anything useful
2017-08-24 15:36:59 -03:00

18 lines
344 B
Go

package handlers
import (
"encoding/json"
"net/http"
"github.com/play-with-docker/play-with-docker/config"
)
func GetInstanceImages(rw http.ResponseWriter, req *http.Request) {
instanceImages := []string{
config.GetDindImageName(),
"franela/dind:overlay2-dev",
"franela/ucp:2.4.1",
}
json.NewEncoder(rw).Encode(instanceImages)
}