Lifecycle of docker