I'm trying to understand the way docker container start
works and use the following Dockerfile
:
FROM ubuntu:18.04
WORKDIR /root
RUN apt-get update && apt-get install -y \
curl \
gnupg2 \
git
CMD ["/bin/bash"]
Now I build an image as
docker image build -t tst .
and run the container as follows:
docker container run -d tst
I run it without interactive mode so it exited as soon as the command execution completes. Now I tried to start this container in an interactive mode:
docker container start -i 57806f93e42c
But it immediately exits as it would run non-interactively:
STATUS
Exited (0) 9 seconds ago
Is there a way to override "interactiveness" for an already created container?