Start with minimal Photon OS installation
User/Group Management
useradd -m -G sudo admin
-m creates the home directory, while -G adds the user to the sudo group
usermod -aG docker admin
-aG adds the user to the additional group (docker)
passwd admin
Change user password.
Set static IP address
Firewall
Update OS
Configure Docker
sudo systemctl start docker
Grant permissions to docker socket file
sudo chmod 666 /var/run/docker.sock
Docker-Compose Plugin
Follow instructions at https://docs.docker.com/compose/install/compose-plugin/#install-the-plugin-manually or at https://runnable.com/docker/introduction-to-docker-compose
Quick install ... be logged as admin user and run following commands
- DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
- mkdir -p $DOCKER_CONFIG/cli-plugins
- curl -SL https://github.com/docker/compose/releases/download/v2.7.0/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
- chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose