IBM Support

The term 'docker-compose' is not recognized ... when trying to start containers with /scripts/paw.ps1

Troubleshooting


Problem

Error when trying to run containers by using <PAW_path>/scripts/paw.ps1
Invoke-Expression : The term 'docker-compose' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At C:\ibm\PAW\scripts\paw.ps1:82 char:28
+ ... sh = exec { Invoke-Expression "docker-compose ${COMPOSE_FILES} -p paw ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (docker-compose:String) [Invoke-Expression], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.InvokeExpressionCommand

Cause

Docker is installed and running, but "docker-compose.exe" was not placed into the "C:\Program Files\docker" folder.

Resolving The Problem

Copy "docker-compose-Windows-x86_64.1.23.2.exe" from <PAW_path>/software folder, paste it into "C:\Program Files\docker" folder, and rename it docker-compose.exe
If another version of docker-compose is needed, then it can be downloaded from https://github.com/docker/compose/releases

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSCTEW","label":"IBM Planning Analytics Local"},"ARM Category":[{"code":"a8m50000000KzIzAAK","label":"Planning Analytics-\u003EPlanning Analytics Workspace"}],"ARM Case Number":"","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Versions"}]

Document Information

Modified date:
14 July 2022

UID

ibm16603959