Docker and Docker Compose on Photon 4 Minimal ISO

Mindwatering Incorporated

Author: Tripp W Black

Created: 01/03/2023 at 07:28 PM


VM Configuration

Installation of Docker and Docker-Compose with the Photon 4 Minimal ISO

1. Create a new VM (example)
- 2 vCPU
- 4 GB RAM
- 16 GB Disk

2. Set boot to CDROM
VM --> Edit Settings (action)--> VM Options (tab) --> Boot Options (heading/twistie)
Force BIOS setup option: check/select: During the next boot, force entry into the BIOS setup screen
Click OK.

VM --> Edit Settings (action)--> Virtual Hardware (tab) --> CD/DVD drive 1 (heading/twistie)--> Change from Client Device to Datastore ISO File, navigate to the desired installation ISO.
e.g. photon-minimal-4.0.iso
Click OK.

VM --> Power --> Power On

3. Open Remote Console, and perform the BIOS change and Installation:
In the BiOS settings, change to the Boot Options tab and move CDROM above Disk.
Save and Exit.

Upon the reboot, click TAB to accept the preselected INSTALL selection.
Follow the prompts, setup the network with DHCP or static as desired.

Set the root password and confirm. The installation will take about 30 to 40 seconds.

After the reboot, disconnect the CDROM.
VM --> Edit Settings (action)--> Virtual Hardware (tab) --> CD/DVD drive 1 (heading/twistie)--> Change from Datastore ISO File back to Client Device.
Click OK.

4. Install Docker-Compose:
a. Login as the root user.

b. Update the system:
root@vmname { ~ ]# tdnf update
< Y, to confirm, and wait>

c: View the docker version already installed:
root@vmname { ~ ]# docker --version
Docker version 20.10.14, build a224086

d. Install docker-compose:
root@vmname { ~ ]# tdnf install docker-compose
< Y, to confirm, and wait>

root@vmname { ~ ]# docker-compose --version
Docker Compose version 2.11.0

previous page