teambit / bit-docker

A dockerfile setup to run your own Bit server.
https://docs.bit.dev
Other
89 stars 32 forks source link

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

Open SpencerYang148 opened 3 years ago

SpencerYang148 commented 3 years ago

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?

samirmajen commented 3 years ago

Try adding this to your deployment spec:

spec: 
  containers: 
    - name: test 
      stdin: true 
      tty: true 
inlet commented 3 years ago

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