Fix a bug in the docker-attach and rename it docker-enter
Revise tests for docker-enter