The docker API can be used to control the docker daemon using REST calls. This can come in handy when controlling docker on a remote machine, or writing scripts to automate the creation, startup, shutdown and destruction of docker containers. Using it comes with some differences from the terminal interface or docker-compose though, so this is how i got started.