api,provision/docker: moved keepAliveWriter initialization to api