From the course: Web Servers and APIs using C++

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Running a Dockerfile

Running a Dockerfile - C++ Tutorial

From the course: Web Servers and APIs using C++

Start my 1-month free trial

Running a Dockerfile

- [Instructor] Now we need to go to the terminal and build our container. Be sure that you are in the directory cppbox. The one with the lone docker file. Enter the following docker build -t cppbox . Please note the command ends with a period. This is the docker build command. It will create an image from our Dockerfile. The -t is the tag option. Our image will be tagged cppbox. Depending on your internet connection speed, this command may take a few minutes. It might be a good time for a break. To make sure that our image was built correctly, let's see if it has the boost libraries in it. Type docker run -ti cppbox:latest. This will give us our the cppbox we just created the local version of it, and then we're gonna type bash. This will run the bash shell on the container. Now we're actually in the container. We're gonna type find /user -name and libboost *.*. If the install succeeded find will show us dozens of boost library files. There we go. We see dozens of them. All the…

Contents