How To Build Docker Image Using Dockerfile. Run “vi dockerfile”, press “i” to switch to “insert mode”, copy/paste the contents of our dockerfile, press “esc” to exit “insert mode”, and save+exit by typing “:x”. To build a docker image, you would therefore […]