Book Image

Beginning Docker [Video]

By : Donald Simpson, Jeff Lindsay
Book Image

Beginning Docker [Video]

By: Donald Simpson, Jeff Lindsay

Overview of this book

<p>One of the major challenges while creating an application is adapting your application to run smoothly on all of the plethora of operating systems available. Docker is an extremely efficient technology that allows you to wrap all your code along with its supporting files into a single bundle; it also guarantees that your application will behave in the same way on any host powered by Docker. You can also easily reuse existing Docker containers or create and publish your own. Unlike Virtual Machines, Docker containers are lightweight and more efficient.</p> <p>Beginning Docker starts with the fundamentals of Docker—explaining how it works, how to set it up, and how to get started on leveraging the benefits of this technology. The course goes on to cover more advanced features and shows you how to create and share your own Docker images.</p> <p>You will learn how to install Docker on your own machine, then how to manage it effectively, and then progress to creating and publishing your very own application. You will then learn a bit more about Docker Containers; built-in features and commands such as volumes, mounts, ports, and linking and constraining containers; before diving into running a web application.</p> <p>Docker has functionality such as the Docker web API to handle complex automation processes which will be explained in detail. You will also learn how to use the Docker Hub&nbsp;to fetch and share containers, before running through the creation of your own&nbsp;Docker powered mini-Heroku</p> <p>Beginning Docker covers everything required to get you up and running with Docker, with detailed real-world examples and helpful tips to make sure you get the most from it.</p> <h1>Style and Approach</h1> <p>An easy-to-follow and structured video tutorial with practical examples of Docker to help you get to grips with each and every aspect.</p> <p>The course will take you on a journey from the basics to the advanced application of Docker containers, and includes several real-world scenarios to learn from.</p>
Table of Contents (6 chapters)
Chapter 4
More Docker Features
Content Locked
Section 2
Overriding the Dockerfile Defaults
Discover how to use docker run to override some of the defaults that come with containers, which are usually specified from their Dockerfiles. - Once you start using third-party containers, you may find that the way they’ve set up their containers is more limiting than helpful to you. Luckily, many of the settings that you can specify in Dockerfiles can be overridden with docker run arguments - How can we access inside of a container via a shell? See how we can do this easily by overriding the entrypoint to use /bin/sh instead. - We don’t always want to run as the default user; this can be incorrect or even dangerous at times. We show how we can specify the default user that we would like to run.