I am copying a powershell script into the container with Dockerfile and running it with CMD echo "pwsh -File '/root/makevm.ps1' | bash The Powershell executes but just sends all the commands at once and does not wait for each task to finish. If I run the container with docker run -it vmware/powerclicore the script works as expected. Any ideas?
I am copying a powershell script into the container with Dockerfile and running it with
CMD echo "pwsh -File '/root/makevm.ps1' | bash
The Powershell executes but just sends all the commands at once and does not wait for each task to finish. If I run the container withdocker run -it vmware/powerclicore
the script works as expected. Any ideas?