Skip to content

Cannot use this docker image in gitlab ci #54

@Monsterovich

Description

@Monsterovich

Support guidelines

I've found a bug and checked that ...

  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

deploy:macos-native:
  stage: deploy
  image: crazymax/osxcross:latest-ubuntu
  script:
    - apt update

Expected behaviour

Docker image to work.

Actual behaviour

ERROR: Job failed (system failure): Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "sh": executable file not found in $PATH: unknown (exec.go:72:0s)

Container logs

Running with gitlab-runner 18.3.0~pre.23.gb8a899e1 (b8a899e1)
  on green-1.saas-linux-small-amd64.runners-manager.gitlab.com/default JLgUopmMV, system ID: s_deaa2ca09de7
Preparing the "docker+machine" executor 00:35
Using Docker executor with image crazymax/osxcross:latest-ubuntu ...
Using effective pull policy of [always] for container crazymax/osxcross:latest-ubuntu
Pulling docker image crazymax/osxcross:latest-ubuntu ...
Using docker image sha256:fa4e0413ba612b2e9d5d6871c778d8db9e62cf95fc0922a0540e444a08591f5b for crazymax/osxcross:latest-ubuntu with digest crazymax/osxcross@sha256:ab9cb3c178279fb1c1d94b87d2ec860969f07ba154466aacc593ece6dcafd62f ...
Preparing environment 00:06
Using effective pull policy of [always] for container sha256:d747ec1baf1a640c64ff00218c5b03d9914e930fb575f6f8a6391eb1c35d671c
Running on runner-jlguopmmv-project-48385306-concurrent-0 via runner-jlguopmmv-s-l-s-amd64-1755094519-23bbc5e5...
Getting source from Git repository 00:02
Gitaly correlation ID: a8951e9d8596e52eefa5d5dc48104cce
Fetching changes with git depth set to 20...
Initialized empty Git repository in /builds/Monsterovich/lanemu/.git/
Created fresh repository.
Checking out da90b7a4 as detached HEAD (ref is feat-macos-separate)...
Skipping Git submodules setup
$ git remote set-url origin "${CI_REPOSITORY_URL}" || echo 'Not a git repository; skipping'
Executing "step_script" stage of the job script 00:01
Using effective pull policy of [always] for container crazymax/osxcross:latest-ubuntu
Using docker image sha256:fa4e0413ba612b2e9d5d6871c778d8db9e62cf95fc0922a0540e444a08591f5b for crazymax/osxcross:latest-ubuntu with digest crazymax/osxcross@sha256:ab9cb3c178279fb1c1d94b87d2ec860969f07ba154466aacc593ece6dcafd62f ...
Cleaning up project directory and file based variables 00:00
ERROR: Job failed (system failure): Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "sh": executable file not found in $PATH: unknown (exec.go:72:0s)

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions