#docker (2022-04)

docker

All things docker

Archive: https://archive.sweetops.com/docker/

2022-04-08

joey jensen avatar
joey jensen

I have to ask, what are others doing for docker image builds? Are you still using Docker’s version?

bradym avatar

Yep. Haven’t come across a good reason to move away from it yet.

managedkaos avatar
managedkaos

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.

managedkaos avatar
managedkaos

I’m also moving to using the ECR public image gallery for the same reason… https://gallery.ecr.aws/

ECR Public Gallery

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

Santiago Campuzano avatar
Santiago Campuzano

We’re using project Kaniko to build our Docker images

Santiago Campuzano avatar
Santiago Campuzano
GoogleContainerTools/kaniko

Build Container Images In Kubernetes

bradym avatar

@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.

Santiago Campuzano avatar
Santiago Campuzano

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

Santiago Campuzano avatar
Santiago Campuzano

It’s a security benefit, mostly

bradym avatar

Ahh, that is nice.

Santiago Campuzano avatar
Santiago Campuzano

From the docs:

Santiago Campuzano avatar
Santiago Campuzano
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.
1

2022-04-11

2022-04-12

Antarr Byrd avatar
Antarr Byrd

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

bradym avatar

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.

Antarr Byrd avatar
Antarr Byrd

thanks

bradym avatar

I’m not familiar with sam, what issues are you running into that seem to come from docker desktop?

Antarr Byrd avatar
Antarr Byrd

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?

bradym avatar

I believe you can get the value you need by running docker context ls

Antarr Byrd avatar
Antarr Byrd

That did it. I had it setup with Lima but forgot to export in my .zshrc file

bananadance1
bradym avatar

Easy to miss that kind of thing

    keyboard_arrow_up