Data Science, Docker, Dockerfiles, Simulation, Numerical Methods.
the work directory to /usr/src/cpp_test (WORKDIR), compiles the .cpp file into an executable (RUN), and finally use CMD to run the image. Now I can build a Docker container image by docker build: docker build . -t cpp_test:1 After the Docker container image is ready, I can run the “HelloWorld”