How do I edit a file after I shell to a Docker container?

As in the comments, there’s no default editor set – strange – the $EDITOR environment variable is empty. You can log in into a container with: docker exec -it <container> bash And run: apt-get update apt-get install vim Or use the following Dockerfile: FROM confluent/postgres-bw:0.1 RUN [“apt-get”, “update”] RUN [“apt-get”, “install”, “-y”, “vim”] Docker images … Read more