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