Difference between revisions of "Installing Docker on Amazon Linux 2"

From Lingoport Wiki
Jump to: navigation, search
(Configure Reverse Proxy)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''AMAZON LINUX 2 is NOT A SUPPORTED PLATFORM. '''
 
   
'''BELOW is the DRAFT OF A DOCKER INSTALLATION WHICH IS NOT SUPPORTED FOR THIS OS'''
 
   
 
==Introduction==
 
==Introduction==
Line 56: Line 54:
   
 
Return to the [[Command Center Installation|Installation page]] to continue installing Command Center on the system
 
Return to the [[Command Center Installation|Installation page]] to continue installing Command Center on the system
  +
  +
== Configure HTTP/HTTPS and TimeOut through Reverse Proxy ==
  +
  +
Please see [[HTTPS_configuration]]
  +
  +
Be sure to set an apache timeout by modifying or appending the line:
  +
  +
TimeOut 600
  +
to /etc/httpd/conf/httpd.conf
  +
  +
As mentioned in the instructions above.

Latest revision as of 18:24, 27 September 2023


Introduction

On the system (most likely a virtual machine) dedicated to Command Center, make sure you have the latest version of docker up and running. The following steps may help.

A user with sudo privileges is required to run most commands. The Amazon Linux user may be 'ec2-user'.

Uninstall old docker versions

This is an optional step in case your docker version is out of date:

   sudo yum remove docker \
                 docker-client \
                 docker-client-latest \
                 docker-common \
                 docker-latest \
                 docker-latest-logrotate \
                 docker-logrotate \
                 docker-engine

Install docker using the repository

   sudo yum update
   sudo yum install docker
   wget https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) 
   sudo mv docker-compose-$(uname -s)-$(uname -m) /usr/local/bin/docker-compose
   sudo chmod -v +x /usr/local/bin/docker-compose

Start Docker.

Start docker using the following command:

   $ sudo systemctl start docker

Enable the Docker service to start automatically on system boot by running the following command:

   $ sudo systemctl enable docker

Verify that Docker Engine is installed correctly

Run the hello-world image.

   $ sudo docker run hello-world

This command will run a test container and display a message indicating that the installation is working properly.

Install other packages

In anticipation of installing Command Center, the following packages should be installed, if not already on the system.

  • git
  • zip and unzip
  sudo yum install git zip unzip


Return to the Installation page to continue installing Command Center on the system

Configure HTTP/HTTPS and TimeOut through Reverse Proxy

Please see HTTPS_configuration

Be sure to set an apache timeout by modifying or appending the line:

TimeOut 600 to /etc/httpd/conf/httpd.conf

As mentioned in the instructions above.