diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-03-17 01:18:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-03-17 01:18:58 +0100 |
| commit | c0cf7fc0ffd14f775ce4dc7a0ccf864aab2bea34 (patch) | |
| tree | 5746b4473a8477c85b4e6bf2241a3427ad3316e0 | |
| parent | 24271618998c818a05e9862d1a1d3cb2d92b7604 (diff) | |
Make docker sessions interactive so that the 'shell' command works.
| -rwxr-xr-x | cdist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -553,7 +553,7 @@ class DockerTarget(Target): def command(self, cmd): dir = os.path.join(self.directory, os.path.relpath(os.getcwd(), self.directory)) - command('%s exec %s -t %s /bin/bash -c \'export %s; cd %s; %s\'' % (config.docker(), self._user_tag(), self.container, self.variables_string(), dir, cmd)) + command('%s exec %s -i -t %s /bin/bash -c \'export %s; cd %s; %s\'' % (config.docker(), self._user_tag(), self.container, self.variables_string(), dir, cmd)) def cleanup(self): super(DockerTarget, self).cleanup() |
