Overview
Docker is an open-source containerisation platform for distributed applications with the guiding principle of construct once, run anywhere. Docker is designed to be both platform and hardware agnostic, so once the Docker container is setup, it will run seamlessly whether on your laptop or the cloud.
Containerisation is a different, but similar approach to virtualisation which allows a program to be packaged into a single thing (i.e., a container) before being hosted on a server. Each container holds all the information and configuration needed to run each individual app and is fully portable between systems. Containers reduce the overhead of running several virtual machines by sharing resources between containers on the same system where it can.
This course covers the basics of Docker, starting with an introduction to containers and the idea behind the software. Then we look at installing Docker and creating our first 'Hello world' style containers. We then move onto automating this process with Dockerfiles and pushing our containers to the main Docker repository. We then look in more details at how to manage persistent data with containers and how to link containers together. After this we have a look at creating and managing our own Docker registry, rather than using the main Docker hub. This will allow companies to store their images and containers internally. Finally, we have a look at three tools that Docker are currently working on to help manage containers. Compose allows us to define one or more containers to be setup in a single file. Machine allows us to set up new virtual or cloud-based machines which we can then deploy our containers to. Finally, swarm allows for high replication services and managing clusters of machines from within Docker.
The course will be taught in a hands-on fashion. There will be some presentation and examples shown, but the majority of the time will be spent with 'hands on keyboards' having a look at what Docker is capable for yourselves.
Prerequisites
Learners must feel comfortable with basic terminal commands in Linux
- Able to change directories
- Install new packages using apt-get or yum
- Edit files using a text editor of your choice on the command line (vim, vi, nano, emacs)
A good understanding of the concepts of source control and experience of using GIT would be useful.
Outline
Images
- Understand the need for images to provide a consistent configuration for containers
- Be familiar with the layered structure of images, and the benefits of building images in such a way
- Be familiar with the standard format for tagging images
- Understand the role that image registries play in storing and distributing images
- Be able to push, pull and retag existing images
Running Containers
- Be familiar with some of the most common deployment parameters used when deploying containerised applications
- Be familiar with the most important ways of interacting with running containers
- Be able to run a container and extract information from it
Building Images
- Be familiar with the core elements of a Dockerfile
- Understand how the build process uses the Dockerfile instructions to build an image
- Be able to modify a Dockerfile and build an image from it
- Be able to describe the use cases for multi-stage builds
- Be able to understand a Dockerfile which defines a multi-stage build
Networking
- Understand the need for container-container networking
- Be familiar with the 4 built-in types of network drivers, and describe the benefits and use cases of each
- Be able to create networks and inspect them for debugging purposes when needed
- Be able to use both default and non-default networks
External Mounts
- Understand that containers sometimes need to share files with the underlying host or with each other
- Understand the difference in use cases between bind and volume mounts
- Be able to modify an application’s configuration at runtime by bind mounting a configuration file
- Be able to persist data from one container in a managed volume, and make that data available to another container
Frequently asked questions
How can I create an account on myQA.com?
There are a number of ways to create an account. If you are a self-funder, simply select the "Create account" option on the login page.
If you have been booked onto a course by your company, you will receive a confirmation email. From this email, select "Sign into myQA" and you will be taken to the "Create account" page. Complete all of the details and select "Create account".
If you have the booking number you can also go here and select the "I have a booking number" option. Enter the booking reference and your surname. If the details match, you will be taken to the "Create account" page from where you can enter your details and confirm your account.
Find more answers to frequently asked questions in our FAQs: Bookings & Cancellations page.
How do QA’s virtual classroom courses work?
Our virtual classroom courses allow you to access award-winning classroom training, without leaving your home or office. Our learning professionals are specially trained on how to interact with remote attendees and our remote labs ensure all participants can take part in hands-on exercises wherever they are.
We use the WebEx video conferencing platform by Cisco. Before you book, check that you meet the WebEx system requirements and run a test meeting to ensure the software is compatible with your firewall settings. If it doesn’t work, try adjusting your settings or contact your IT department about permitting the website.
How do QA’s online courses work?
QA online courses, also commonly known as distance learning courses or elearning courses, take the form of interactive software designed for individual learning, but you will also have access to full support from our subject-matter experts for the duration of your course.
Once you have purchased the Online course and have completed your registration, you will receive the necessary details to enable you to immediately access it through our e-learning platform and you can start to learn straight away, from any compatible device. Access to the online learning platform is valid for one year from the booking date.
All courses are built around case studies and presented in an engaging format, which includes storytelling elements, video, audio and humour. Every case study is supported by sample documents and a collection of Knowledge Nuggets that provide more in-depth detail on the wider processes.
When will I receive my joining instructions?
Joining instructions for QA courses are sent two weeks prior to the course start date, or immediately if the booking is confirmed within this timeframe. For course bookings made via QA but delivered by a third-party supplier, joining instructions are sent to attendees prior to the training course, but timescales vary depending on each supplier’s terms. Read more FAQs.
When will I receive my certificate?
Certificates of Achievement are issued at the end the course, either as a hard copy or via email. Read more here.