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.

  • 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 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 | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"
# Install Docker
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli
# 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://
# Reload the Docker Deamon
sudo systemctl daemon-reload
# Restart docker
sudo service docker restart
# Test connection from vRA Appliance
# 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 + 62 = 68