Explore the Basics of setting up your first secure Private Docker Registry This is a Title Slide with Graphic slide ideal for including a picture with.

Slides:



Advertisements
Similar presentations
Client-server practices DSC340 Mike Pangburn. Agenda Overview of client-server development Editing on client (e.g., Notepad) or directly on server (e.g.,
Advertisements

Cloud computing is used to describe a variety of computing concepts that involve a large number of computers connected through a real-time communication.
Apache Web Server Quick and Dirty Steve Gibbard for SANOG 16 (Originally by Joel Jaeggli for AfNOG 2007) ‏
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Create an Office Mix Let’s Get Started….
Learning Word Press. You will learn how to Get your own Get hosting for your website Get a design for your website Learn.
APACHE SERVER By Innovationframes.com »
Amazon EC2 Quick Start adapted from EC2_GetStarted.html.
Linux Operations and Administration
Lecture 5 Title: Networks and Businesses
Celoxis Intro Celoxis is a web-based project management software company based in India. The Celoxis application integrates management of projects, resources,
Presented by: Sanketh Beerabbi University of Central Florida COP Cloud Computing.
Apache Web Server Quick and Dirty for AfNOG 2015 (Originally by Joel Jaeggli for AfNOG 2007) ‏
© ITT Educational Services, Inc. All rights reserved. IS3230 Access Security Unit 7 Authentication Methods and Requirements.
1 Professional Communications Introduction to Slide Presentations Copyright © Texas Education Agency, All rights reserved. Images and other multimedia.
Click to edit Master text styles Make Interactive Videos with PowerPoint and Office Mix.
Company LOGO January 24 th, 2007 PC Manager Meeting.
WHAT THE APP IS THAT? DECEPTION AND COUNTERMEASURES IN THE ANDROID USER INTERFACE.
How to Remove Websearch. Install the Anti-Malware Software.
Intro to Docker Containers
CLOUD ARCHITECTURE Many organizations and researchers have defined the architecture for cloud computing. Basically the whole system can be divided into.
Getting & Running EdgeX Docker Containers
Setting and Upload Products
Docker Private Registry: How To
Data Virtualization Tutorial… SSL with CIS Web Data Sources
Deployment Architectures For Containers
Apache web server Quick overview.
SSL Certificates for Secure Websites
Explore the Basics of setting up your first secure Private Docker Registry This is a Title Slide with Graphic slide ideal for including a picture with.
Docker Birthday #3.
Intro to Docker Containers
In-Depth Introduction to Docker
Deploying Dockerized Apps to the Azure Container Service
Jim Fawcett CSE686 – Internet Programming Summer 2005
(Originally by Joel Jaeggli for AfNOG 2007)‏
Azure CLI Deep Dive Neil Peterson Content Developer Microsoft.
Andrew Pruski SQL Server & Containers
Virtualization in the gLite Grid Middleware software process
How to Check if a site's connection is secure ?
Windows Server & Hyper-V Containers Vaggelis Kappas
Introduction to Docker
BlackJack Hands-on-lab
OPERATING SYSTEMS.
[Presented by] [Presented DATE]
Confidential – Oracle Internal/Restricted/Highly Restricted
Intro to Docker Containers and Orchestration in the Cloud
Title Layout Subtitle.
CompTIA Security+ Study Guide (SY0-501)
Intro about Contanier and Docker Technology
Title Layout Subtitle.
Secure Gateway Today Internet Internet Explorer and ICA MetaFrame
NAME OF PRESENTATION Company name.
A Programmer’s Guide to Secure Connections
Title of the presentation
Hyperledger Fabric and Composer Install
An introduction to the Linux environment v
software & cloud computing
NAME OF PRESENTATION Company name.
Increase and Improve your PC management with Windows Intune
NAME OF PRESENTATION Company name.
Title Layout Subtitle.
Jerald Overstreet, GISP Server Portal SQL Manager Admin
APACHE WEB SERVER.
Title Layout Subtitle.
Introduction to Let’s Encrypt
Azure Container Service
Oracle 1z0-928 Oracle Cloud Platform Big Data Management 2018 Associate.
Title With Pictures layout
Title With Pictures layout
Title Layout Subtitle.
Presentation transcript:

Explore the Basics of setting up your first secure Private Docker Registry This is a Title Slide with Graphic slide ideal for including a picture with a brief title, subtitle and presenter information. Do not customize this slide with your own background. Mike Raab Senior Principal Product Manager Oracle Container Cloud Service March 8, 2017

Program Agenda 1 About Me It Starts with the VM Key Tools on the Road of SSL Certificates Docker Run Q&A 2 3 4 5

About Me 30 plus years in x86 compute industry 20 plus years in software I Internet 10 years in Virtualization |Cloud | SaaS | IaaS 3 years working with Docker Current - Product Manager at Oracle for Container Cloud Service

Let’s Build a Secure Private Docker Image Registry Oracle Cloud VM – OL6 UEK4 + Open SSH / HTTPS Ports + Docker Engine + Valid SSL Certs

Install / Verify Docker Engine on OL6

Docker Engine is Installed

Create DNS A Record In Your CPanel

Third Party Tools To Be Used Acme.sh (https://github.com/Neilpang/acme.sh) Tool to interact with Let’s Encrypt Supports a variety of modes, including DNS Supports Oracle Linux Let’s Encrypt (https://letsencrypt.org) Free and open Certificate Authority MX Toolbox (https://mxtoolbox.com) Used to check DNS Propagation

Install Acme.sh https://github.com/Neilpang/acme.sh

Use Acme.sh DNS Method $ acme.sh --issue --dns -d registry.example.com

Add Text Record in CPanel

Check that TXT record has propagated DNS

Request Certs $ acme.sh --renew -d registry.example.com

Copy Certs to /home/opc/certs $ acme.sh --renew -d registry.example.com * https://docs.docker.com/registry/deploying/#get-a-certificate

Prep and Docker Run $ cd /home/opc $ docker pull registry:2 $ mkdir auth $ docker run --entrypoint htpasswd registry:2 -Bbn testuser testpassword > auth/htpasswd $ docker run -d --restart=always -p=443:5000/tcp - e="REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt" - e="REGISTRY_HTTP_TLS_KEY=/certs/registry.example.com.key" -e="REGISTRY_AUTH=htpasswd" - e="REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd" -e="REGISTRY_AUTH_HTPASSWD_REALM=Our Test Registry" -v=/home/opc/certs:/certs -v=/home/opc/auth:/auth -v /home/opc/registry:/var/lib/registry "registry:2"

Login to Registry and Push Test Image

Verify in Browser

Validate in Oracle Container Cloud Service

Key Links and Content Content Location This Presentation is based on this Blog: https://community.oracle.com/community/cloud_computing/infrastructure-as-a-service-iaas/oracle-container-cloud-service/blog/2017/01/26/the-fast-path-to-a-private-docker-registry-on-oracle-public-cloud More Information on Oracle Public Cloud Infrastructure: https://cloud.oracle.com/en_US/iaas More Information on Oracle Container Cloud Service: https://cloud.oracle.com/en_US/container

Questions?

Add a UI via Docker Compose registry: restart: always image: registry:2 ports: - 443:5000 environment: REGISTRY_HTTP_TLS_CERTIFICATE: /certs/domain.crt REGISTRY_HTTP_TLS_KEY: /certs/registry.example.com.key REGISTRY_AUTH: htpasswd REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd REGISTRY_AUTH_HTPASSWD_REALM: Example Registry volumes: - /home/opc/certs:/certs - /home/opc/auth:/auth - /home/opc/registry:/var/lib/registry ui: image: konradkleine/docker-registry-frontend:v2 - 8443:443 extra_hosts: - "registry.example.com:172.17.0.1" ENV_DOCKER_REGISTRY_HOST: registry.example.com ENV_DOCKER_REGISTRY_PORT: 443 ENV_DOCKER_REGISTRY_USE_SSL: 1 ENV_USE_SSL: 1 - /home/opc/certs/domain.crt:/etc/apache2/server.crt:ro - /home/opc/certs/registry.example.com.key:/etc/apache2/server.key:ro