From the course: Docker for Data Scientists

Unlock the full course today

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

Troubleshooting Dockerfiles

Troubleshooting Dockerfiles

From the course: Docker for Data Scientists

Start my 1-month free trial

Troubleshooting Dockerfiles

So let's use a really simple example. Now once you understand the principals here, you can apply this to a more complicated docker file. So I'm going to save this file, now let's go ahead and build the image. So remember to confirm you're in the same directory as the docker file. So I do a Docker Build. I'll give it a tag ts for troubleshooting and dot to specify the docker file's in this directory. Now this will just take a couple of moments. Now looking at step one and step two on the screen, it's important to remember that all docker images are layered on top of other docker images. And that you can start a container from any image. So we've got an invalid operation error at the bottom of the screen. And if I scroll back up, so in step two you've got a container, or a running image in 0e98 and so on, and in step one from the ubuntu image, we've got an image starting with 5890. So with this information it's possible to run an interactive container so that you can try and determine…

Contents