Introduction
You are following the installation guide for Terraform Enterprise FDO Podman on Red Hat Enterprise Linux 9 and you get an error when you are on the first step of the Apply the deployment configuration section.
Error
You run the command:
podman kube play <path_to_YAML_file>
and you get an error similar to this:
Error: failed to create volume "docker-sock": in parsing HostPath in YAML: faccessat /var/run/docker.sock: no such file or directory
Cause
Either podman.socket
or podman.docker
are missing from the TFE instance
Solution
1. Make sure you followed the instructions to install podman on RHEL 9.
Podman should have been installed with the command below:
dnf install -y container-tools
This meta-package contains the podman-docker package which replaces the Docker command-line interface and docker-api with the matching Podman commands instead.
2. Follow the instructions for preparing the host and enable podman socket with the following command:
systemctl enable --now podman.socket
3. Remove the container of Terraform Enterprise:
podman container rm terraform-enterprise-terraform-enterprise
4. Apply the deployment configuration again:
podman kube play <path_to_YAML_file>
5. Continue with Apply the deployment configuration guide.
Additional information
https://developer.hashicorp.com/terraform/enterprise/deploy/prepare-host#install-the-runtime