Hello,
I have a new kind of issue.
I have an gitlab and an jfrog repository.
I have to push some docker images from gitlab pipeline to jfrog repository.
But if i use docked dind he cant acces the address of the repo, if i try to use an ubuntu image in my stage, i can
t use docker commands
Issue:
Using docker image sha256:3b418d7b466ac6275a6bfcb0c86fbe4422ff6ea0af444a294f82d3bf5173ce74 for ubuntu with digest ubuntu@sha256:dfd64a3b4296d8c9b62aa3309984f8620b98d87e47492599ee20739e8eb54fbf …
[27]$ docker --version
[28]/usr/bin/bash: line 157: docker: command not found
push:
stage: push-image
image: ubuntu
services:
- name: docker:19.03.0-dind
command: [“–insecure-registry”, “172.17.20.68:8082”]
before_script:
#- docker info
- docker --version
- docker login -u exemplare -p $JFROG_PASSWORD 127.0.0.1:9090 (exemple ip)
script:- apt-get update
- apt-get install -y docker.io
- docker --version
#- systemctl enable docker
#- apt-get install -y ca-certificates
#- ls -la lpr-arh/etc/
- ls -la /etc/docker/
- cp lpr-arh/etc/daemon.json /etc/docker/
- ls
- cd lpr-arh/
- ls
#- cp etc/daemon.json /etc/docker/
- chmod 777 push.sh
- ./push.sh