There are three possibilities here @Ali,
- Check your Dockerfile if it a valid ENTRYPOINT
- Add this line in your dockerfile - easy but dirty solution
CMD exec /bin/bash -c "trap : TERM INT; sleep infinity & wait"
- set tty as true in your container spec in your deployment file.
spec:
containers:
- image: image-name
name: name
tty: true