Closed a-t-0 closed 2 years ago
This passed:
test:pytest:36:
image: python:3.6
script:
- whoami
- apt-get update && apt-get install -y python
- apt-get install python
- apt-get update --fix-missing
- wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; bash miniconda.sh -b -f -p $HOME/miniconda;
- export PATH="$HOME/miniconda/bin:$PATH"
- conda env create -q -f environment.yml -n example_env --force
- source activate example_env
- conda install pytest
- python -m pytest
It is fixed, the GitLab docker runner works automatically after installation.
Ensure the Docker runner is able to connect with the gitlab server.
Error can be resolved with:
The
docker-network-mode
is selected from output:Based on: https://stackoverflow.com/questions/61798689/mavenlatest-image-from-gitlab-runner-with-docker-executer-failed-to-connect-to/61812661#comment130763167_61812661