I am new to Docker and the process I use to create and execute a container from a Dockerfile is the following:
docker build -t (IMAGE_NAME) .
docker docker run -itd --name (CONTAINER_NAME) (IMAGE_NAME)
docker exec -it (CONTAINER_NAME) bash
However, if I want to update my Dockerfile and run the container again I have to do the following:
docker ps
to get the ID of my containerdocker container stop (ID)
docker rm (ID)
and then I have to repeat the first three steps. Is there a quicker way to do this or have to rerun these steps every time I update my Dockerfile? This is very tedious