Closed kpipic closed 1 year ago
Change this:
$AdditionalParameters += '--volume {0}:{1}' -f $RepositoryDirectory, $RepositoryDirectory
to
$AdditionalParameters += '--volume "{0}:{1}"' -f $RepositoryDirectory, $RepositoryDirectory
that should fix the issue
PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!
Describe the issue Creating of container failed with: $Params += @{ additionalParameters = $AdditionalParameters } when $AdditionalParameters += '--volume {0}:{1}' -f $RepositoryDirectory, $RepositoryDirectory
$RepositoryDirectory contains spaces in path
Scripts used to create container and cause the issue
Full output of scripts
Screenshots
Additional context Container created with the same script but $RepositoryDirectory does not contains spaces in path: