Repository navigation
restart
This document explains exactly how DAM's restart command works, including container state behavior and when it should be used versus recreate.
The restart command performs a simple, in-place restart of running containers for the selected apps. It is a quick way to bounce services (e.g., to reload an internal configuration file mapped via a volume), but it does not apply changes made to the Compose file itself.
To restart only one service, use <app>:<service>:
dkr restart <app-name>:<service>DAM passes the service name to docker compose restart and displays status for that service.
When the restart command is executed for an app, DAM follows a consistent, two-step process per app:
# Executed from within the app's directory
docker compose [-f <file>...] restartDAM changes the working directory to the app's directory and issues the standard compose restart command.
- In-place Restart: The existing containers are stopped and then started again. Their internal container IDs remain exactly the same.
-
No Configuration Updates: Docker will not read
compose.yamlto check for changes. If you changed a port mapping, environment variable, or volume mount, the restarted container will still use the old configuration. - No Image Updates: Even if a newer image exists locally, the container will continue using the exact image hash it was originally created with.
Important: If you have modified
compose.yamlor pulled new images, you must userecreateorupdateinstead ofrestart.
docker compose psAfter the restart operation completes, DAM prints the current status of the app's services to confirm that all containers have successfully started back up.
Append using <file1> <file2>... to select Compose files explicitly. If none of the requested files resolve for an app, restart logs an informational message and falls back to that app's default Compose file. If one or more resolve, DAM uses only the resolved files and warns about any misses.
┌─────────────────┐
│ restart <app> │
└────────┬────────┘
│
▼
┌──────────────────┐
│ docker compose │
│ restart │
└────────┬─────────┘
│
▼
┌──────────────────┐
│ Show status │
│ docker compose ps│
└──────────────────┘
# Restart a single app
dkr restart <app-name>
# Restart multiple specific apps
dkr restart <app-name> <app-name-2> <app3>
# Restart all available apps
dkr restart all
# Restart all apps except specific apps
dkr restart all except <app3> <app4>