Converting docker-compose to a helm chart?
The kompose tool now includes the ability to convert to Helm charts from docker-compose.yml files: kompose convert -c Check out the kompose Alternative Conversions documentation (also here).
The kompose tool now includes the ability to convert to Helm charts from docker-compose.yml files: kompose convert -c Check out the kompose Alternative Conversions documentation (also here).
If you are using the values from the env file by name, like below. You can use posix parameter expansion like shown to get default value behavior. Compose will use the value for that variable from .env file or if it’s set in your shell, otherwise it will default to default-value. services: myapp: environment: SOME_VALUE: … Read more
Kind cluster configuration needs to be like below apiVersion: kind.x-k8s.io/v1alpha4 kind: Cluster nodes: – role: control-plane extraPortMappings: – containerPort: 30000 hostPort: 30000 listenAddress: “0.0.0.0” # Optional, defaults to “0.0.0.0” protocol: tcp # Optional, defaults to tcp – role: worker This file is then passed to your creation command as kind create cluster –config=config.yaml (according to … Read more
The Dockerfile is for creating images not containers. You can now give names to your containers using the new –name flag for docker run. If –name is not provided Docker will automatically generate an alphanumeric string for the container name.
This took way too long to find out as its not documented anywhere: apk update && apk add openssh or alternatively: apk add -qU openssh
Dockerfile for running docker-cli inside alpine FROM alpine:3.10 RUN apk add –update docker openrc RUN rc-update add docker boot Build docker image docker build -t docker-alpine . Run container (host and the alipne container will share the same docker engine) docker run -it -v “/var/run/docker.sock:/var/run/docker.sock:rw” docker-alpine:latest /bin/sh
On the host machine you can use the ssh-key and ip subcommands of the minikube command: scp -i $(minikube ssh-key) <local-path> docker@$(minikube ip):<remote-path> So the command from the question becomes: scp -i $(minikube ssh-key) /media/myuser/sourceFolder docker@$(minikube ip):/home/docker/destiationFolder
Solution to this problem was to upgrade docker from version 18.06.1-ce to 20.10.7. Why? This is because the default seccomp profile of Docker 20.10.9 is not adjusted to support the clone() syscall wrapper of glibc 2.34 adopted in Ubuntu 21.10 and Fedora 35. Source: ubuntu:21.10 and fedora:35 do not work on the latest Docker (20.10.9)