Join Troy Miles for an in-depth discussion in this video Adding a volume, part of Web Servers and APIs using C++.
- [Instructor] We are going to work on our host machine…by build and run on the container.…In order to edit files on the Docker container…from our host machine, we are going to create a volume.…A volume is a directory shared by the host machine…and one or more Docker containers.…We add a volume with the -v option…of the docker run command.…The volume option begins with a -v,…is followed by a space,…and two halves separated by a colon.…The left half is the absolute path…to the directory of the host machine.…
The right half is the absolute path…to the directory on the container.…I am going to create my volume using the cppweb directory…that I created on the desktop.…Here is the Docker command to do that.…Please substitute your directory path for mine.…So it's docker run…- v /Users…/troymiles…/Desktop…/cppweb:…/usr/src…and /cppweb -ti cppbox:…latest bash.…
Do note, the rest of the command is stuff we've seen before.…The -ti puts Docker in terminal interactive mode,…cppbox:latest is our local version…of the cppbox image we built previously,…
- Working with Crow, the C++ micro web framework
- Deploying containers to Heroku
- Building websites and webpages
- Accessing data from a database
- Accessing data via RESTful APIs
- Creating API endpoints
- Running WebSockets on Heroku
Skill Level Intermediate
1. Installing Our Tools
2. Deploying to Heroku
Installing the Heroku CLI1m 17s
3. Building Websites
4. Data Access
5. RESTful APIs
6. WebSockets and Crow
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.