#docker (2022-04)
All things docker
Archive: https://archive.sweetops.com/docker/
2022-04-08
![joey jensen avatar](https://avatars.slack-edge.com/2022-04-07/3358468343333_dbab20b974d63ccd9807_72.png)
I have to ask, what are others doing for docker image builds? Are you still using Docker’s version?
![bradym avatar](https://avatars.slack-edge.com/2023-06-21/5464816405572_dd21bed1bf537acb6539_72.jpg)
Yep. Haven’t come across a good reason to move away from it yet.
![managedkaos avatar](https://secure.gravatar.com/avatar/f7d88a7a95990c984ab107b491b51b3f.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0025-72.png)
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](https://secure.gravatar.com/avatar/f7d88a7a95990c984ab107b491b51b3f.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0025-72.png)
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
![Santiago Campuzano avatar](https://secure.gravatar.com/avatar/f8f05f122df51440e3bd79dd0feb089b.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0000-72.png)
We’re using project Kaniko to build our Docker images
![Santiago Campuzano avatar](https://secure.gravatar.com/avatar/f8f05f122df51440e3bd79dd0feb089b.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0000-72.png)
Build Container Images In Kubernetes
![bradym avatar](https://avatars.slack-edge.com/2023-06-21/5464816405572_dd21bed1bf537acb6539_72.jpg)
@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](https://secure.gravatar.com/avatar/f8f05f122df51440e3bd79dd0feb089b.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0000-72.png)
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](https://secure.gravatar.com/avatar/f8f05f122df51440e3bd79dd0feb089b.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0000-72.png)
It’s a security benefit, mostly
![bradym avatar](https://avatars.slack-edge.com/2023-06-21/5464816405572_dd21bed1bf537acb6539_72.jpg)
Ahh, that is nice.
![Santiago Campuzano avatar](https://secure.gravatar.com/avatar/f8f05f122df51440e3bd79dd0feb089b.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0000-72.png)
From the docs:
![Santiago Campuzano avatar](https://secure.gravatar.com/avatar/f8f05f122df51440e3bd79dd0feb089b.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0000-72.png)
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
![Antarr Byrd avatar](https://avatars.slack-edge.com/2021-06-30/2228892449458_e483a864049d562ea3d5_72.jpg)
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](https://avatars.slack-edge.com/2023-06-21/5464816405572_dd21bed1bf537acb6539_72.jpg)
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](https://avatars.slack-edge.com/2021-06-30/2228892449458_e483a864049d562ea3d5_72.jpg)
thanks
![bradym avatar](https://avatars.slack-edge.com/2023-06-21/5464816405572_dd21bed1bf537acb6539_72.jpg)
I’m not familiar with sam
, what issues are you running into that seem to come from docker desktop?
![Antarr Byrd avatar](https://avatars.slack-edge.com/2021-06-30/2228892449458_e483a864049d562ea3d5_72.jpg)
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](https://avatars.slack-edge.com/2023-06-21/5464816405572_dd21bed1bf537acb6539_72.jpg)
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.
![bradym avatar](https://avatars.slack-edge.com/2023-06-21/5464816405572_dd21bed1bf537acb6539_72.jpg)
I believe you can get the value you need by running docker context ls
![Antarr Byrd avatar](https://avatars.slack-edge.com/2021-06-30/2228892449458_e483a864049d562ea3d5_72.jpg)
![bradym avatar](https://avatars.slack-edge.com/2023-06-21/5464816405572_dd21bed1bf537acb6539_72.jpg)
Easy to miss that kind of thing