-
Notifications
You must be signed in to change notification settings - Fork 376
Closed
Labels
Milestone
Description
Refs: #2772
Complexity: 4
- The
postStartCommand
andpostAttachCommand
properties can be used in 4 different cases (see instructions):- Single container.
- Single container from Git repository.
- Docker Compose.
- Attach to existing container (
postAttachCommand
only).
- Verify
postStartCommand
is only run when the container was (re)started. Note that by default the container is stopped after the last window disconnected (not in the 'attach' case), but only after 10 seconds (to speed up window reloads). - Verify
postAttachCommand
is always run when the window connects (aka 'attaches') in all 4 above cases. - The property value can be a string or an array of strings. A string is run in a
/bin/sh
, an array is run as a command with parameters without shell.