Skip to content

Update traefik deploy command to work with Docker Engine v29 #324

@yamalight

Description

@yamalight

Docker Engine v29 will drop support for using string as CMD during container creation, breaking exoframe traefik deploy.
Following fix should be applied (fully backwards compatible as older versions accepted both string and array of strings):

diff --git a/packages/exoframe-server/src/docker/traefik.js b/packages/exoframe-server/src/docker/traefik.js
index 41b6312..779d6f9 100644
--- a/packages/exoframe-server/src/docker/traefik.js
+++ b/packages/exoframe-server/src/docker/traefik.js
@@ -161,7 +161,9 @@ export async function initTraefik(exoNet) {
   const container = await docker.createContainer({
     Image: config.traefikImage,
     name: config.traefikName,
-    Cmd: '--configFile=/var/traefik-config/traefik.yml',
+    Cmd: [
+      '--configFile=/var/traefik-config/traefik.yml'
+    ],
     Labels: {
       'exoframe.deployment': 'exo-traefik',
       'exoframe.user': 'admin',

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions