As you said that you need to copy container Id every time whenever you want to connect to that container is because either you haven't assigned any name to that container or it's picking up something default .
For Example : I am going to run a centOS image and want name it as dev-centos-1
You can write a docker file for this or run this following command to up your container
docker container run --name dev-centos-1 -d centos:latest
once this container is up you can do everything by it's name :
docker stats dev-centos-1
docker logs dev-centos-1
or even connect to it bash :
docker exec -it dev-centos-1 bash
This is always considered as a better way to manage your containers in your environments .
Thanks .