I was able to run a docker container but if I do sudo docker-compose up -d
but how to reopen/watch the screen again if I need and close again. I am using ubuntu.
Thanks
I was able to run a docker container but if I do sudo docker-compose up -d
but how to reopen/watch the screen again if I need and close again. I am using ubuntu.
Thanks
2
Answers
You are probably looking for
docker attach
(documentation). Usage is:In order to follow the logs of all of the containers that are included in the
docker-compose.yml
file, run the commanddocker-compose logs -f
(probably withsudo
in your case) in the same directory in which you already ransudo docker-compose up -d
. You can find more information on the command here.