Resolution for docker-compose up -d Common Errors
Error - 1:
On docker-compose up -d I received the following error on a machine I had just upgraded from Windows 10 Home to Windows 10 Pro.
Uninstalling and reinstalling Docker Desktop for Windows, quit, restart docker desktop and retry compose up etc. didn't help with this error.
Then when I switched on Containers and Hyper-V windows features, the docker-compose up -d command was successful.
Error Details:
Error response from daemon: open \\.\pipe\docker_engine_windows: The system cannot find the file specified.
Docker Desktop Version 4.15.0
1. Enable Hyper-V , Containers Windows features
While performing docker-compose up -d, the TELERIK_ENCRYPTION_KEY variable in .env file did not like special character(s) especially $ sign and was getting truncated with a message something in the line as follows.
Tried some of the resolutions like enclosing the whole string in between quotes as well as adding an additional $ sign without any luck.
Finally, decided to generate the random string with this command that disallows special characters:
Get-SitecoreRandomString 128 -DisallowSpecial
The error was resolved as a result.
The other option that has worked for me in the past is uncheck Docker Compose V2 option in Docker Windows Desktop Settings.
Error:
warning msg="The \"Xw\" variable is not set. Defaulting to a blank string."
Invalid template: "9ex8<Lju}(\\X./]>N|\\F*[4pV]BFntBM#:7VASS#/3o+E9Et^>E}A\\:m^_M=[O?C;mvGH$<${h-_NNg>LSHo<{-`|(K\\dvOxFcYxrE^ddUh@~Ii!Lha9VNsMd9azT$Xw"
Comments
Post a Comment