Pulling and image works, so connectivity to registry and at least some calls to internal API work, so far so good.
Tailing logs located at /Users/<username>/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/log I saw failed attempts at starting containers:
time="2016-08-04T19:31:35.929305871Z" level=debug msg="Calling GET /containers/redis/json"
time="2016-08-04T19:31:35.929740717Z" level=error msg="Handler for GET /containers/redis/json returned error: No such container: redis"
Then I checked the docker daemon internal API to see if that was true and indeed:
Next I wondered if Kitematic would have the same problem, and it ran the redis container just fine. The weird thing is I didn’t see any extra steps involved in creating the container:
time="2016-08-04T19:37:27.481991459Z" level=debug msg="Calling GET /containers/redis/json"
time="2016-08-04T19:37:27.486072781Z" level=debug msg="Calling POST /containers/redis/start"
time="2016-08-04T19:37:27.490440669Z" level=debug msg="container mounted via layerStore: /var/lib/docker/aufs/mnt/c4fda65035cae249b40456a614af9cf973c3f3f5a99df1edffcb8548890aafd4"
time="2016-08-04T19:37:27.492309496Z" level=debug msg="Assigning addresses for endpoint redis's interface on network bridge"
time="2016-08-04T19:37:27.495479527Z" level=debug msg="RequestAddress(LocalDefault/172.17.0.0/16, <nil>, map[])"
time="2016-08-04T19:37:27.507636494Z" level=debug msg="Assigning addresses for endpoint redis's interface on network bridge"
It created the container, so calling GET /containers/redis/json worked this time.
5. I finally tried using docker run command and viola, it worked!
How do you currently start such container? You have to use
docker run redis
Which internally calls the following API endpoints:
/containers/create
/containers/(id)/start
TLDR:
Starting a container without previously pulling && creating one results in a scary error:
Error response from daemon: ContainerInspect failed
Error: failed to start containers: <container_name>
However, this should work as docker run <container_name>