Hi All,
We’ve been using Octopus Server self hosted for some time now on a Windows server install and are looking to migrate to running the server in a docker container.
I’m having an issue with the volume mounting. If I run this command the server starts up absolutely fine and connects to our DB OK and gets all the configs etc, but with no volume mounting to the host machine (so we don’t have our existing packages etc)
docker run --interactive --detach --name OctopusServer --publish 1322:8080 --env DB_CONNECTION_STRING="..." --env ACCEPT_EULA="Y" --env MASTER_KEY=... octopusdeploy/octopusdeploy:2020.1.8
I’ve copied all the data from c:\Octopus on our existing server to the same folder on our docker host machine, however if I try to run the same command with the --volume flag
docker run --interactive --detach --name OctopusServer --publish 1322:8080 --env DB_CONNECTION_STRING="..." --env ACCEPT_EULA="Y" --env MASTER_KEY=... --volume "c:\Octopus:c:\Octopus" octopusdeploy/octopusdeploy:2020.1.8
I get the following error
C:\Program Files\Docker\Docker\resources\bin\docker.exe: Error response from daemon:
container a06733bc4723bc93141c377d6abe2d0cc5f3cd308187182c1f154a8f7a184409 encountered
an error during hcsshim::System::CreateProcess: failure in a Windows system call: The system
cannot find the file specified. (0x2)
[Event Detail: Provider: 00000000-0000-0000-0000-000000000000]
[Event Detail: Provider: 00000000-0000-0000-0000-000000000000]
[Event Detail: onecore\vm\compute\management\orchestration\vmhostedcontainer\processmanagement.cpp(173)\vmcomputeagent.exe!00007FF7E625AE77: (caller: 00007FF7E620E4AB) Exception(14) tid(384) 80070002 The system cannot find the file specified.
CallContext:[\Bridge_ProcessMessage\VmHostedContainer_ExecuteProcess]
Provider: 00000000-0000-0000-0000-000000000000] extra info: {"CommandLine":"entrypoint.bat","WorkingDirectory":"C:\\Octopus","Environment":{"ACCEPT_EULA":"Y","COMPLUS_NGenProtectedProcess_FeatureEnabled":"0","DB_CONNECTION_STRING":"...","DOTNET_RUNNING_IN_CONTAINER":"true","ENABLE_USAGE":"Y","LANG":"en-US","MASTER_KEY":"...=","OCTOPUS_INSTANCE":"OctopusServer"},"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}.
I’ve manually removed the connection string & master key from this post
Any help much appreciated!