#docker (2022-04)
All things docker
Archive: https://archive.sweetops.com/docker/
2022-04-08
I have to ask, what are others doing for docker image builds? Are you still using Docker’s version?
Yep. Haven’t come across a good reason to move away from it yet.
I build images in GitHub or Gitlab and then push to GitLab Packages or ECR. I’ve started using both AWS ECR and GitHub for my personal images so if I share them with others, they can download anonymously without being rate limited by Docker.
I’m also moving to using the ECR public image gallery for the same reason… https://gallery.ecr.aws/
Amazon ECR Public Gallery is a website that allows anyone to browse and search for public container images, view developer-provided details, and see pull commands
We’re using project Kaniko to build our Docker images
Build Container Images In Kubernetes
@Santiago Campuzano I’m curious what benefits you have seen using kaniko? I’ve heard of it but haven’t played around with it yet myself.
We don’t have to mount the Docker Daemon in our Pipelines, meaning that we can run an unprivileged pipeline/step (using Drone.io) to build the Docker image
It’s a security benefit, mostly
Ahh, that is nice.
From the docs:
kaniko doesn't depend on a Docker daemon and executes each command within a Dockerfile completely in userspace. This enables building container images in environments that can't easily or securely run a Docker daemon, such as a standard Kubernetes cluster.
2022-04-11
2022-04-12
Anyone know how I can can install docker-engine on a mac with out the desktop version. I need to be able to run sam local
docker doesn’t run on mac without a vm, so you either need to run docker desktop or create your own linux vm and run it there.
thanks
I’m not familiar with sam
, what issues are you running into that seem to come from docker desktop?
I’m getting this error when calling sam local invoke
Error: Running AWS SAM projects locally requires Docker. Have you got it installed and running?
Looks like you may need to set the DOCKER_HOST
env var.
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install-mac.html#serverless-sam-cli-install-mac-docker
Install the AWS SAM CLI on your macOS host.
I believe you can get the value you need by running docker context ls
Easy to miss that kind of thing