Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 98422

How to view docker logs from vscode remote container?

$
0
0

I'm currently using vscode's remote containers extension with a .devcontainer.json file that points to my docker-compose.yml file.

Everything works fine and my docker-compose start command gets run (which launches a web server), but I haven't found a way to quickly see the logs from the web server. Has anyone found a way to view the docker log output automatically once vscode connects to the remote container?

I know as an alternative I could remove my container's start command and, after vscode connects, manually open a terminal and start the web server, but I'm hoping there's an easier way.

Thanks in advance!


Viewing all articles
Browse latest Browse all 98422

Trending Articles