This change makes docker attempt to create the container ID file and open it before attempting to create the container. This avoids leaving a stale container behind if docker has failed to create and open the container ID file. The container ID is written to the file after the container is created. Upstream-commit: 25be79208a1473a65be883989ae49b7c71081a83 Component: engine