"circleci local execute ." => invalid mount config for type "bind": bind source path does not exist

Note: All links have been stripped to – to obey no links rule

Method
–/docs/how-to-use-the-circleci-local-cli/#running-a-job

  1. Followed the example to download the circle ci demo
git clone --circleci-demo-go.git
cd circleci-demo-go
circleci local execute build

Expected Results
Demo to run without any hitch

Actual Results
Gets the following error

Fetching latest build environment...
Docker image digest: sha256:008ba7f4223f1e26c11df9575283491b620074fa96da6961e0dcde47fb757014
docker: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /tmp/2271273586_circleci_config.yml.
See 'docker run --help'.

Setup Notes
I’ve setup docker on my computer many months ago using the instructions - --/engine/install/ubuntu/ . Docker will work perfectly fine with the hello-world example and many other docker containers that I utilise on my computer.

I’ve setup circleci using the alternative installation methods described here - --/docs/local-cli/#alternative-installation-method.

My system is Ubuntu 23.04
Docker: Docker version 25.0.2, build 29cf629
CircleCI: 0.1.30163+16acd35 (release)

I have gotten this working in the past, but unsure if it was on this computer or my old computer.

As your environment is a Ubuntu deployment this thread may help

It seems that you can end up with Ubuntu provided modules that need to be removed before you install the Docker provided modules.

Below is a copy of the ansible script I use to install a clean copy of Docker onto any Ubuntu server I deploy. You do not need to worry about the ansible aspect, just the fact that you can see the packages I uninstall and then once the correct repo is registered the packages I then install.

- name: Remove the old docker packages deployed in Ubuntu
  apt:
    pkg:
      - docker
      - docker-engine
      - docker.io
      - containerd
      - docker-compose-plugin
    state: absent
    update_cache: true
  register: apt
- debug: msg={{ apt.stdout.split('\n')[:-1] }}
  when: aptout.stdout_lines is defined


- name: Add Docker GPG apt Key
  apt_key:
    url: https://download.docker.com/linux/ubuntu/gpg
    state: present


- name: Add Docker Repository
  apt_repository:
    repo: deb https://download.docker.com/linux/ubuntu jammy stable
    state: present


- name: Update apt and install docker-ce
  apt:
    pkg:
      - docker-ce
      - docker-ce-cli
      - containerd.io
      - docker-compose-plugin
    state: latest
    update_cache: true
  register: apt
#- debug: msg={{ apt.stdout.split('\n')[:-1] }}
#  when: aptout.stdout_lines is defined


- name: Install Docker Module for Python
  pip:
    name: docker

@rit1010 - Thank you for this. I’ve got this working now (it was the snap docker…).

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.