Hi Kavitha, Do you have docker on the image of your stage where you're trying to build your docker container ? Here we use a dind service (docker in docker) :
publish:
stage: build
image:
name: docker:latest
services:
- docker:19-dind
Hope it helps ! Best regards
Great tutorial on GITLAB and ECR.
May I know what will be next after putting the image in the image repository? Perhaps you can send me link on how the app container be deployed on the target environment. Thank you. More power
Thanks for this!
Im getting the error: Could not connect to the endpoint URL: "api.ecr.eu-east-2.amazonaws.com/" Error: Cannot perform an interactive login from a non TTY device
Do you have any idea whats going wrong? All the env variables are populated correctly have tested theyre coming through
Hi I try with this yml and I'm getting this error:
$ aws ecr get-login-password | docker login --username AWS --password-stdin $DOCKER_REGISTRY Unable to locate credentials. You can configure credentials by running "aws configure". Error: Cannot perform an interactive login from a non TTY device
I already setup the aws key and secret variables in ci/cd settings on gitlab.
Someone know how to resolve it?
I'm using on premise server with a gitlab runner docker with executor docker.
Thanks.
Nice work! I suggest creating your own image that contains aws-cli, get rid of variables on top and put it into GitLab as secrets to make the pipeline more simple and readable.
Kavitha Ranga
Tech Lead
hi, I get the error ERROR: Cannot connect to the Docker daemon at tcp://docker:2376. Is the docker daemon running?
Also tried the same with port 2375 with no luck. For this to work, should Gitlab runner be running in privileged = true mode?
Any suggestions. thanks,