Guance Learn

Observability questions

Focused answers for definitions, architecture choices, troubleshooting, pricing, and evaluation.

Illustration of container operations and troubleshooting
Explainer

Use SSH credentials in Docker without baking in private keys

Choose scoped runtime mounts or agent forwarding, use BuildKit SSH mounts during builds, and verify server host keys.

Illustration of container operations and troubleshooting
Explainer

Do you need sudo inside a Docker container?

Check the configured user first, use deliberate build or exec privileges, and avoid turning a non-root runtime into unrestricted root.

Illustration of container operations and troubleshooting
Explainer

Inspect the files and layers in a Docker image

Explore a trusted image with a shell, export a stopped container filesystem, or inspect layer history and configuration.

Illustration of container operations and troubleshooting
Explainer

Use files outside the default Docker build context

Select a broader context or an explicit named context, and distinguish local paths from stages, images, Git sources and stdin builds.

Illustration of container operations and troubleshooting
Explainer

List Docker containers and filter the results

Find running or stopped containers, inspect useful status fields, and select a deliberate scope before bulk operations.

Illustration of container operations and troubleshooting
Explainer

Bind-mount a host directory into a Docker container

Choose an explicit host path, distinguish runtime mounts from image copies, and diagnose permissions and file-sharing behavior.

Illustration of container operations and troubleshooting
Explainer

Understand Docker environment variable precedence

Separate image defaults, container configuration, Compose interpolation, and process-local changes when a variable has an unexpected value.

Illustration of container operations and troubleshooting
Explainer

Open an interactive shell with Docker Compose

Choose exec for a running service or run for a disposable command, and understand when attach controls the main process.

Illustration of container operations and troubleshooting
Explainer

Why a detached Docker container stops

Detached mode changes terminal attachment; the main process, stop signals, and restart policy determine the container lifecycle.

Illustration of container operations and troubleshooting
Explainer

Remove old stopped Docker containers

Select disposable containers deliberately, understand prune age filters, and preserve data before scheduling cleanup.

Illustration of container operations and troubleshooting
Explainer

Clean up unused Docker images

Distinguish dangling images from unreferenced images, preserve rollback assets, and keep local cleanup separate from registry retention.

Illustration of container operations and troubleshooting
Explainer

Run a Docker image as a container

Create a container with the intended command, ports, mounts, and environment, then distinguish a new run from restarting an existing instance.