For some reason, whenever I run circleci locally with two docker images, it always throws an error. I have tried many combinations, and they all fail. For example, even this stub fails:
test-test:
docker:
- image: cimg/php:8.1
- image: cimg/node:current
working_directory: /app
steps:
- checkout
which gives the following error which is representative of all in general:
❯ circleci local execute test-test
Fetching latest build environment...
Docker image digest: sha256:008ba7f4223f1e26c11df9575283491b620074fa96da6961e0dcde47fb757014
====>> Spin up environment
Build-agent version ()
System information:
Server Version: 24.0.7
Storage Driver: overlay2
Backing Filesystem: extfs
Cgroup Driver: cgroupfs
Cgroup Version: 1
Kernel Version: 5.15.133.1-microsoft-standard-WSL2
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
Starting container cimg/php:8.1
Warning: No authentication provided, using CircleCI credentials for pulls from Docker Hub.
image is cached as cimg/php:8.1, but refreshing...
cimg/php:8.1:
using image cimg/php@sha256:0e932b782b1fa78abdb14bddf881876d8683dbb3549eb840bd67f8969bb50c32
pull stats: Image was already available so the image was not pulled
time to create container: 55ms
Starting container cimg/node:current
8.1: Pulling from cimg/php
Digest: sha256:0e932b782b1fa78abdb14bddf881876d8683dbb3549eb840bd67f8969bb50c32
Status: Image is up to date for cimg/php:8.1
Creating Docker containers in parallel .............Error: error starting container cimg/node:current: Error response from daemon: invalid UTS mode: containere6ec44a2656c53c708ff2764b183c6d96bcda8bf738c4ac376effe8876072be3
Error:
Unexpected environment preparation error: Error response from daemon: invalid UTS mode: containere6ec44a2656c53c708ff2764b183c6d96bcda8bf738c4ac376effe8876072be3
Step failed
Task failed
Error: Unhandled prepare executor error: Error response from daemon: invalid UTS mode: containere6ec44a2656c53c708ff2764b183c6d96bcda8bf738c4ac376effe8876072be3
This doesnt seem to cause any issues when run not locally, i.e through Github Checks. I can only see one other reference to this issue anywhere, and it was never solved. Is this potentially a bug with circleci cli?