Setup a Docker host for vRealize Automation Code Stream

This blog post explain step by step how to setup a docker host which is needed to run CI Task from Code Stream. If a CI Task started by vRealize Automation Code Stream a specified docker container will be started on the docker host for the lifetime of the Code Stream Pipeline. The Ci tasks are running inside the container and returns the result back to Code Stream.

Prerequisites
  • Installed Ubuntu 20.04
  • The Ubuntu machine should have internet access
Install Docker on Ubuntu server
# First remove old versions
sudo apt-get remove docker docker-engine docker.io containerd runc
# Add the docker repository
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# Install Docker
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
# Enable and start the docker engine
sudo systemctl start docker
sudo systemctl enable docker
Enable Docker remote API
sudo nano /lib/systemd/system/docker.service

Change the yellow marked line as follow and save the modified file.

ExecStart=/usr/bin/dockerd -H fd:// -H=tcp://0.0.0.0:2375
# Reload the Docker Deamon
sudo systemctl daemon-reload
# Restart docker
sudo service docker restart
# Test connection from vRA Appliance
curl http://192.168.71.7:2375/images/json
# output should be a empty json array []

Next: Adding a Docker Host to Code Stream

Similar Posts

Leave a Reply

Your email address will not be published.

WC Captcha + 74 = 82