Oracle® Container Runtime for Docker

User's Guide

Oracle Legal Notices
Oracle Documentation License

E87205-10

October 2018


Table of Contents

Preface
1 About Oracle Container Runtime for Docker
1.1 Preview Releases
1.2 Notable Updates
2 Installing and Upgrading Oracle Container Runtime for Docker
2.1 Upgrading Oracle Container Runtime for Docker
2.2 Configuring Yum and Installing Oracle Container Runtime for Docker Packages
2.2.1 Setting up Unbreakable Enterprise Kernel
2.2.2 Installing Oracle Container Runtime for Docker
2.3 Configuring Proxy Requirements
2.4 Configuring IPv6 Networking
2.5 Configuring Docker Storage
2.6 Starting and Checking the Status of the Docker Engine
2.7 Other Systems Administration Tasks
3 Docker Administration and Configuration
3.1 Reloading or Restarting the Docker Engine
3.2 Enabling Non-root Users to Run Docker Commands
3.3 Configuring User Namespace Remapping
3.4 Enabling Live Restore for Containers
3.5 Registry Configuration Options
4 Working with Containers and Images
4.1 Pulling Oracle Linux Images from the Docker Hub, Docker Store or Oracle Container Registry
4.1.1 Enabling or Disabling Docker Content Trust
4.2 Creating and Running Docker Containers
4.2.1 Configuring How Docker Restarts Containers
4.2.2 Controlling Capabilities and Making Host Devices Available to Containers
4.2.3 Accessing the Host's Process ID Namespace
4.2.4 Mounting a Host's root File System in Read-Only Mode
4.3 Creating a Docker Image from an Existing Container
4.4 Creating a Docker Image from a Dockerfile
4.4.1 Multi-stage Builds
4.5 About Docker Networking
4.5.1 About Multihost Networking
4.6 Communicating Between Docker Containers
4.6.1 Example of Linking Database and HTTP Server Containers
4.7 Accessing External Files from Docker Containers
4.8 Creating and Using Data Volume Containers
4.9 Moving Data Between Docker Containers and the Host
4.10 Using Labels to Define Metadata
4.11 Defining the Logging Driver
4.12 About Image Digests
4.13 Specifying Control Groups for Containers
4.14 Limiting CPU Usage by Containers
4.15 Making a Container Use the Host's UTS Namespace
4.16 Setting ulimit Values on Containers
4.17 Building Images with Resource Constraints
4.18 Committing, Exporting and Importing Images
5 Docker Registry
5.1 Using the Oracle Container Registry
5.1.1 Oracle Container Registry Mirrors
5.2 Using the Docker Store
5.3 Setting up a local Docker Registry Server
5.4 Importing images into the local Docker Registry
6 For More Information About Docker