bit-docker
bit-docker copied to clipboard
problem: docker container will auto stop if you run this without '-it' arguments
trafficstars
problem about '-it' arguments:
1. use this command will auto stop after server started
docker run --name my-scope -p 3000:3000 harmony-scope
then print logs and auto stop
Bit server has started on port 3000
2. but if you add '-it' args, it works
docker run -it --name my-scope -p 3000:3000 harmony-scope
then print logs, it works
Bit server is running on http://localhost:3000
but I cannot add -it args because k8s shell does not support it
How to solve this problem?
Try adding this to your deployment spec:
spec:
containers:
- name: test
stdin: true
tty: true
I'm having the same issue, any updates on this?