From 4c458254b3fa330e90b71825f6e01c50c750aef5 Mon Sep 17 00:00:00 2001 From: Jeremy Frasier Date: Tue, 7 Jun 2022 16:11:07 -0400 Subject: [PATCH] Update code to use the "docker compose" syntax vice "docker-compose" The "docker compose" syntax is the preferred (and only correct) syntax after the changes in cisagov/ansible-role-docker#60. --- files/guacamole-composition.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/guacamole-composition.service b/files/guacamole-composition.service index 50b2ed4..72763ec 100644 --- a/files/guacamole-composition.service +++ b/files/guacamole-composition.service @@ -6,11 +6,11 @@ Requires=docker.service [Service] Restart=always # Stop containers (if running) when unit is stopped -ExecStartPre=/usr/bin/docker-compose --file /var/guacamole/docker-compose.yml down +ExecStartPre=/usr/bin/docker compose --file /var/guacamole/docker-compose.yml down # Start containers when unit is started -ExecStart=/usr/bin/docker-compose --file /var/guacamole/docker-compose.yml up +ExecStart=/usr/bin/docker compose --file /var/guacamole/docker-compose.yml up # Stop container when unit is stopped -ExecStop=/usr/bin/docker-compose --file /var/guacamole/docker-compose.yml down +ExecStop=/usr/bin/docker compose --file /var/guacamole/docker-compose.yml down [Install] WantedBy=multi-user.target