docker exec -it id command code example Example: docker exec -it id command it ensures that when you exit from contianer it is still running