@@ -157,16 +157,16 @@ cmd_api_pipeline() {
157157 git fetch origin
158158 git checkout origin/staging.kernelci.org
159159 echo " Pulling pipeline containers"
160- docker- compose $compose_files pull
160+ docker compose $compose_files pull
161161 set +e
162- docker- compose $compose_files down --remove-orphans
162+ docker compose $compose_files down --remove-orphans
163163 # verify if it failed due orphaned network bug
164164 if [ $? -ne 0 ]; then
165165 echo " Failed to stop pipeline containers, restarting containerd and docker"
166166 docker_workaround
167167 echo " Attempting to restart pipeline containers again"
168168 set -e
169- docker- compose $compose_files down --remove-orphans
169+ docker compose $compose_files down --remove-orphans
170170 fi
171171 set -e
172172 cd -
@@ -177,28 +177,28 @@ cmd_api_pipeline() {
177177 git prune
178178 git fetch origin
179179 git checkout origin/staging.kernelci.org
180- docker- compose pull $api_services
180+ docker compose pull $api_services
181181 echo " Stopping API containers"
182182 set +e
183- docker- compose down
183+ docker compose down
184184 # verify if it failed due orphaned network bug
185185 if [ $? -ne 0 ]; then
186186 echo " Failed to stop API containers, restarting containerd and docker"
187187 docker_workaround
188188 echo " Attempting to restart API containers again"
189189 set -e
190- docker- compose down
190+ docker compose down
191191 fi
192192 set -e
193193 echo " Starting API containers"
194- docker- compose up -d $api_services
194+ docker compose up -d $api_services
195195 cd -
196196
197197 cd checkout/kernelci-pipeline
198198 # REQUIREMENTS=requirements-dev.txt docker-compose $compose_files build --no-cache
199199 echo " Starting pipeline containers"
200200 SETTINGS=/home/kernelci/config/staging.kernelci.org.secrets.toml \
201- docker- compose $compose_files up -d
201+ docker compose $compose_files up -d
202202 cd -
203203}
204204
0 commit comments