docker-enter function simplified