[BUG] The stop.sh script can't work in container
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Current Behavior
The stop.sh script can’t work in container, while it can work in a host machine.
Expected Behavior
The stop.sh script can work in container.
Steps To Reproduce
In the container:
- ./start.sh
- ./stop.sh
Environment
ShenYu version(s): 2.4.1
Debug logs
No response
Anything else?
In a container, there’s no uid column when execute ps -ef.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (10 by maintainers)
Top Results From Across the Web
sh script doesn't work in docker container - Stack Overflow
I have a problem running a .sh script inside a docker container. You have a number of issues here... Just some pointers:.
Read more >Same command works in terminal but not in a bash script
I have the following script #!/bin/bash set -x docker stop ${MYSQL_CONTAINER_NAME} docker rm ${MYSQL_CONTAINER_NAME} docker run \ --detach ...
Read more >Please stop writing shell scripts - Python⇒Speed
It is quite difficult to write correct shell scripts; you're much better off just using Python.
Read more >Why Does My Docker Container Stop? - Tutorial Works
The container has been stopped using docker stop : You can manually stop a container using the docker stop command.
Read more >Container permission denied: How to diagnose this error
Learn what is causing a container permissions error and how to work around the issue without resorting to the --privileged flag.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I just test the new script in pr 2352 . It work both in the host ( Linux and MAC) and container
Solved Problems
RUN apk --no-cache add procpsin Dockerfile.Test Result
Docker Container
Shenyu Admin
Shenyu Bootstrap
Linux Server
Shenyu Admin
Shenyu Bootstrap