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 - C++ Tutorial
From the course: Web Servers and APIs using C++
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
Installing Docker1m 29s
-
(Locked)
Installing Atom35s
-
(Locked)
Creating a Dockerfile5m 16s
-
(Locked)
Running a Dockerfile1m 50s
-
(Locked)
Adding a volume2m 33s
-
(Locked)
Building Crow9m 33s
-
(Locked)
Serving the example3m 7s
-
(Locked)
Challenge: Modify the example page31s
-
(Locked)
Solution: Modify the example page2m
-
(Locked)
-
-
-
-
-
-