bit-docker icon indicating copy to clipboard operation
bit-docker copied to clipboard

problem: docker container will auto stop if you run this without '-it' arguments

Open SpencerYang148 opened this issue 4 years ago • 2 comments
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?

SpencerYang148 avatar May 26 '21 09:05 SpencerYang148

Try adding this to your deployment spec:

spec: 
  containers: 
    - name: test 
      stdin: true 
      tty: true 

samirmajen avatar May 27 '21 08:05 samirmajen

I'm having the same issue, any updates on this?

inlet avatar Jun 14 '21 16:06 inlet