name: stop-preview description: Stop a running MkDocs preview server. Use when port 8000 is busy, switching tasks, or done editing documentation.
Stop the MkDocs preview server that is running in the background.
See ../shared/repo-conventions.md for directory structure.
This will:
- Find any running Docker containers with the training-mkdocs image
- Stop the container(s)
- Confirm the server has been stopped
If no preview server is running, you'll be notified.
Use the following steps:
- Run
docker ps --filter "ancestor=ghcr.io/nextflow-io/training-mkdocs:latest" --format "{{.ID}}"to find running containers - If any container IDs are found, stop them with
docker stop <container_id> - Confirm they have been stopped