Before this change it was necessary to remove the container manually. With these changes it will automatically detect when a new version should be deployed and the role will automatically remove the old container.