st2-docker
st2-docker copied to clipboard
st2makesecrets, st2client, and st2chatops containers fail to start successfully
Describe the problem Hey. So, I just want to admit, up front, that I have very little experience with Docker, and even less with docker-compose, so I apologize in advance if the creation of this ticket is because I don't know what I am doing. So, I am trying to build out the stackstorm containers defined in this repo, but, for some reason, the st2makesecrets, st2client, and st2chatops containers just will not start. As I have been trying to troubleshoot this problem myself, I have noticed that these containers have one thing in common: They are displaying the same error:
exec /<scriptname>.sh: no such file or directory
Where "<scriptname>"
is the name of the script configured under the "command" configuration. So, st2makesecrets can't find /makesecrets.sh, st2client can't find /st2client-startup.sh, and st2chatops can't find /st2chatops-startup.sh. Initially, I thought it was some kind of permissions issue that occurred when attempting to copy the scripts to the root of the container, but that does not appear to be the case, as the st2web container copies st2web-healthcheck.sh over to the root of its container, but it is NOT configured to run the script via the "command" parameter (and I was able to connect to the container and verify the script does exist at the specified location). This appears to have something to do with containers using the "Command" property, but I have no idea why.... Also, I should clarify that I have replicated this on two entirely separate computers running Windows
Versions
- Host OS: Windows 11 23H2. Using Docker Desktop running in WSL 2
- docker:
docker --version
Docker version 26.1.4, build 5650f9b
- docker-compose: [e.g. 1.21.1]
docker-compose --version
Docker Compose version v2.27.1-desktop.1
- stackstorm version: [e.g. v3.3.0]
I cannot provide this information, as I am unable to connect to the client container to run the query, since it will not start
To Reproduce
- On a windows system, install docker desktop.
- run docker-compose up -d