Difference between revisions of "Docker"

From CAC Documentation wiki
Jump to navigation Jump to search
m
(Started installation instructions)
 
Line 12: Line 12:
 
=== Installation ===
 
=== Installation ===
  
 +
For a complete list of instructions, see the Docker [https://docs.docker.com/engine/install/ installation guide].  Docker provides instructions for both types of [[Red Cloud Linux Instances|Linux instance]] types available in Red Cloud: [https://docs.docker.com/engine/install/ubuntu/ Ubuntu] and [https://docs.docker.com/engine/install/centos/ CentOS].  While there are instructions for Windows, we do not recommend running Docker on Windows in Red Cloud.  For this step-by-step guide, we will use a Ubuntu VM.
  
 +
# First, [[OpenStack#Launch_an_Instance|launch a new instance]], specifically a new [[Red_Cloud_Linux_Instances#Steps|Linux instance]] with the Ubuntu 18.04 LTS [[Images|image]].  [[Red_Cloud_Linux_Instances#Secure_Shell_.28SSH.29|Access]] the instance via <code>ssh</code>.
 +
# Make sure the system is up-to-date:
 +
#* <code>sudo apt update</code> and <code>sudo apt upgrade</code>
 +
#* You may need to run <code>sudo reboot</code> and reconnect once the instance has finished restarting.
 +
#
 +
 +
Once installed, see the post installation instructions (https://docs.docker.com/engine/install/linux-postinstall/), specifically the first step on user groups. Next, their getting started page (https://docs.docker.com/get-started/) provides a good base for using Docker.
  
 
=== Using A Docker Image ===
 
=== Using A Docker Image ===

Latest revision as of 16:01, 11 January 2021

This page is under construction

Intro

Only available in Red Cloud, not available on CAC Private Clusters.


Getting Started

Installation

For a complete list of instructions, see the Docker installation guide. Docker provides instructions for both types of Linux instance types available in Red Cloud: Ubuntu and CentOS. While there are instructions for Windows, we do not recommend running Docker on Windows in Red Cloud. For this step-by-step guide, we will use a Ubuntu VM.

  1. First, launch a new instance, specifically a new Linux instance with the Ubuntu 18.04 LTS image. Access the instance via ssh.
  2. Make sure the system is up-to-date:
    • sudo apt update and sudo apt upgrade
    • You may need to run sudo reboot and reconnect once the instance has finished restarting.

Once installed, see the post installation instructions (https://docs.docker.com/engine/install/linux-postinstall/), specifically the first step on user groups. Next, their getting started page (https://docs.docker.com/get-started/) provides a good base for using Docker.

Using A Docker Image

Useful Commands

Creating a Dockerfile