Add option to pull image before container update
This commit is contained in:
1 parent
610548ed66
commit
6b49d13236
3 files changed
+23
-2
No files matched your search
@@ -70,6 +70,7 @@
|
||||
restartMaxRetries: number | '';
|
||||
networkMode: string;
|
||||
startAfterCreate?: boolean;
|
||||
repullImage?: boolean;
|
||||
// Port mappings
|
||||
portMappings: { hostPort: string; containerPort: string; protocol: string }[];
|
||||
// Volume mappings
|
||||
@@ -152,6 +153,7 @@
|
||||
restartMaxRetries = $bindable(),
|
||||
networkMode = $bindable(),
|
||||
startAfterCreate = $bindable(true),
|
||||
repullImage = $bindable(true),
|
||||
portMappings = $bindable(),
|
||||
volumeMappings = $bindable(),
|
||||
envVars = $bindable(),
|
||||
@@ -643,6 +645,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-3 pt-1">
|
||||
<Label class="text-xs font-normal">Pull image before update</Label>
|
||||
<TogglePill bind:checked={repullImage} />
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-3 pt-1">
|
||||
<Label class="text-xs font-normal">Start container after {mode === 'create' ? 'creation' : 'update'}</Label>
|
||||
<TogglePill bind:checked={startAfterCreate} />
|
||||
|
||||
@@ -87,6 +87,7 @@
|
||||
let restartMaxRetries = $state<number | ''>('');
|
||||
let networkMode = $state('bridge');
|
||||
let startAfterUpdate = $state(true);
|
||||
let repullImage = $state(true);
|
||||
|
||||
// Port mappings
|
||||
let portMappings = $state<{ hostPort: string; containerPort: string; protocol: string }[]>([
|
||||
@@ -894,6 +895,7 @@
|
||||
networkMode,
|
||||
networks: selectedNetworks.length > 0 ? selectedNetworks : undefined,
|
||||
startAfterUpdate,
|
||||
repullImage,
|
||||
user: containerUser.trim() || undefined,
|
||||
privileged: privilegedMode || undefined,
|
||||
healthcheck,
|
||||
@@ -1055,6 +1057,7 @@
|
||||
bind:restartMaxRetries
|
||||
bind:networkMode
|
||||
startAfterCreate={startAfterUpdate}
|
||||
{repullImage}
|
||||
bind:portMappings
|
||||
bind:volumeMappings
|
||||
bind:envVars
|
||||
|
||||
Reference in new issue
Block a user