0% found this document useful (0 votes)
11 views4 pages

Side Notes

This document provides instructions for connecting to a VM using SSH and installing Docker on Ubuntu. It details the steps to create a user, configure Docker logging, and restart the server, as well as guidelines for installing Roundhouse software. Additionally, it includes VI editor shortcuts for file editing and saving.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views4 pages

Side Notes

This document provides instructions for connecting to a VM using SSH and installing Docker on Ubuntu. It details the steps to create a user, configure Docker logging, and restart the server, as well as guidelines for installing Roundhouse software. Additionally, it includes VI editor shortcuts for file editing and saving.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Side notes:

Connect to VM using Terminal (Windows 11 preinstalled)

Use the following command:


ssh -i C:\Users\qventer\ssh\qventerprivate.pem [email protected]
(*Note: .pem file will be generated per VM, this is just an example, instructions
available on Azure *Add link)
You are now connected.
Follow the docker installation step at: Install Docker Engine on Ubuntu | Docker Docs
Follow the steps below:

1. Create a simplement user and docker group, then add


the simplement user to it. (This will allow you to run docker commands
without sudo.)
sudo groupadd docker
sudo gpasswd -a $USER docker

Creating and adding the simplement user:


sudo useradd rhadmin
sudo gpasswd -a rhadmin docker
sudo passwd rhadmin
<<Configure password here…>>
sudo adduser rhadmin sudo
su – rhadmin
<enter password for user>

2. Restrict Docker logging


 Run docker info and look for "Docker Root Dir".
If docker root is "/var/snap/docker/common/var-lib-docker" edit
file /var/snap/docker/current/config/daemon.json

If docker root is "/var/lib/docker" edit


file /etc/docker/daemon.json (Note: this file does not exist by
default)

 Edit the daemon.json file in your system to add/modify the


following settings. If daemon.json config file doesn't exist you
can just copy the text below for it.
{
"log-driver": "local",
"log-opts": {
"max-size": "100m",
"max-file": "5"
}
}
1. Modify the max-size and max-file to appropriate values for
your system. Worst case over time "max-size" x "max-file"
x "number of containers" (there will be ~10 containers
running) will tell you how much space docker logs might
consume. When docker compose down is run everything is
cleared out. Generally you will want to establish some
monitoring on the Linux server to watch and alert for
filesystem space issues.
2. More information can be found
at https://docs.docker.com/config/containers/logging/config
ure/
3. Restart server (docker services need to restart to work with the new
docker security group and take the new logging settings)
 If you are updating the docker logging settings in a system with
containers running already make sure to stop the SAP Capture Job and
run docker compose down before restarting. Then once the system is
back up run docker compose up -d from the roundhouse directory and
once the UI is back up turn the SAP Capture job back on.

Roundhouse Software Installation


This script assumes you are logged in with a simplement user who will
be the owner of the files and in the created /roundhouse directory.
Replace the text <Insert Software Download Link Here> below with the
download link provided.
wget -O simplement-rh.tar.gz <Insert Software Download Link Here>
umask 0
gzip -dc simplement-rh.tar.gz | tar xf -
chmod 700 *.sh
./setup-simp.sh

VI shortcuts:
To Edit: A
To Exit without saving: ESC then :q!
To exit with saving: ESC then :wq!

You might also like