Guance Learn

Observability questions

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

Illustration of container operations and troubleshooting
Explainer

Execute a command in a running Docker container

Use docker exec with the right user, environment, working directory and terminal settings, and understand its lifecycle limits.

Illustration of container operations and troubleshooting
Explainer

Run scheduled jobs with cron in a Docker container

Build a foreground cron service, use the correct cron file format, and pass selected environment values safely.

Illustration of container operations and troubleshooting
Explainer

Build a dedicated cron container

Use a complete Debian cron example with foreground scheduling, valid system-crontab syntax and observable job output.

Illustration of server operations and log analysis
Explainer

Keep Nginx running in a Docker container

Run the Nginx master in the foreground, test the mounted configuration in the same image, and investigate exits before adding a restart policy.

Illustration of container operations and troubleshooting
Explainer

Can a Dockerfile set the output image name?

Name image outputs with build tags, Compose configuration or a build tool, and distinguish names from stages and labels.

Illustration of container operations and troubleshooting
Explainer

Start Docker containers automatically after a reboot

Choose a restart policy, ensure the daemon starts, and distinguish process restarts from dependency readiness and live restore.

Illustration of container operations and troubleshooting
Explainer

Set PATH in a Dockerfile

Use ENV for a persistent search path, understand RUN scope and runtime overrides, and avoid confusing executable lookup with package imports.

Illustration of container operations and troubleshooting
Explainer

Upgrade a running container to a new image

Replace the container with a reviewed image while preserving configuration, validating data compatibility, and preparing a realistic rollback.

Illustration of container operations and troubleshooting
Explainer

Use local container images in Minikube

Load or build images for the correct Minikube runtime and nodes, then match the workload image reference and pull policy.

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.