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