skip to Main Content

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


  1. You are probably looking for docker attach (documentation). Usage is:

    docker attach [OPTIONS] CONTAINER
    
    Login or Signup to reply.
  2. In order to follow the logs of all of the containers that are included in the docker-compose.yml file, run the command docker-compose logs -f (probably with sudo in your case) in the same directory in which you already ran sudo docker-compose up -d. You can find more information on the command here.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search