From 4a739213bf6ffa1fe322a90b5fffd545bfb3fcd0 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 15 Aug 2018 12:51:52 +0200 Subject: [PATCH] When creating a container the Labels are toplevel --- src/dockerproxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dockerproxy.js b/src/dockerproxy.js index d705f9b2b..e5483ec6f 100644 --- a/src/dockerproxy.js +++ b/src/dockerproxy.js @@ -66,7 +66,7 @@ function attachDockerRequest(req, res, next) { function containersCreate(req, res, next) { safe.set(req.body, 'HostConfig.NetworkMode', 'cloudron'); // overwrite the network the container lives in - safe.set(req.body, 'Config.Labels', _.extend({ }, safe.query(req.body, 'Config.Labels'), { appId: req.app.id })); // overwrite the app id to track containers of an app + safe.set(req.body, 'Labels', _.extend({ }, safe.query(req.body, 'Labels'), { appId: req.app.id })); // overwrite the app id to track containers of an app let binds = []; for (let bind of (req.body.HostConfig.Binds || [])) {