From the course: Docker on AWS

Unlock the full course today

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

Container mods for shared storage

Container mods for shared storage

From the course: Docker on AWS

Start my 1-month free trial

Container mods for shared storage

- [Instructor] In order to actually create a shared volume that does anything meaningful, we're going to actually have to update our hostname script. We jump into the terminal session and we do an LS here in the directory. We have a hostname dot shell script that looks slightly different than our previous case. So we're still determining the container hostname, which we'll actually be able to highlight and still presenting that by default as the webpage that we would be looking at. But, specifically in sharing our hostname path, so this is the hostname within our underlying resource, instead of overriding this file every time or appending to this file. And this is good because we should be able to get two different hostnames if we run two different containers and we might even tweak the version ID so that we can actually get a different version, not just a different hostname. So we're going to need this path. So we're…

Contents