New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Desktop 代替を検証する #67
Comments
|
Podmanhttps://podman.io/getting-started/installation Podman は Linux 上で動く |
やりたいこと
|
podman は簡単にインストールできたし、普通に podman run でコンテナ起動できた
build もできた FROM alpine:3.14.2
RUN apk add curl
|
podman で kind を動かすkind 的にはサポートしてそうに見える。
雑に実行してみたら動かない
https://kind.sigs.k8s.io/docs/user/rootless/#creating-a-kind-cluster-with-rootless-podman
|
Podman では Docker image の short name の扱いが Docker と違う
registries:
search:
- registry.fedoraproject.org
- registry.access.redhat.com
- docker.io
- quay.io
https://podman.io/getting-started/installation#configuration-files VM の中にあった。
ただし、 short name はセキュリティ的なリスクもある。 |
|
minikubeローカルで k8s 動かすなら minikube もあり。 minikube も複数クラスタに対応している。 https://minikube.sigs.k8s.io/docs/faq/#how-can-i-create-more-than-one-cluster-with-minikube
Pod も普通に deploy できた
|
lima を試すhttps://github.com/lima-vm/lima
コンテナも起動できた。
image build もできた
まぁコマンドは
あたりがない気がする。 Docker Compose CLI: https://zenn.dev/skanehira/articles/2021-06-03-new-docker-compose Docker Compose CLI にはあるので 書いてあった https://github.com/containerd/nerdctl#unimplemented-docker-commands
docker-compose.yaml で以下の設定をしているが、これだとだめなのかもしれない。 tty: true
stdin_open: true 代わりに command: ["tail", "-f", "/dev/null"] しかし、環境変数がうまく渡っていない。 environment:
- "PATH=/root/.aqua/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
- GITHUB_TOKEN # 空になる |
This comment has been minimized.
This comment has been minimized.
「マルチCPUアーキテクチャ」に対応したイメージをビルドDocker
Docker の場合、 buildx を使うことで実現可能 buildahbuildah でも可能っぽい? nerdctlnerdctl もサポートしている?
この例は pull だけど、 build もサポートしているんだろうか? $ lima nerdctl build --help
...
--platform strings Set target platform for build (e.g., "amd64", "arm64") サポートしてそう podman$ podman build --help
--all-platforms attempt to build for all base image platforms
--arch string set the ARCH of the image to the provided value instead of the architecture of the host (default "arm64")
--os string set the OS to the provided value instead of the current operating system of the host (default "darwin")
--platform linux/arm set the OS/ARCH/VARIANT of the image to the provided value instead of the current operating system and architecture of the host (for example linux/arm) (default [darwin/arm64/v8]) |
Mac で普段開発していて、 Docker を使うときは Docker for Mac を使ってきた。
普段は停止しておいて Docker が必要なときに起動するようにしている。
最近 Docker Desktop の有償化の話もあったので、 Docker Desktop の代替を検証してみた。
https://www.docker.com/blog/updating-product-subscriptions/
The text was updated successfully, but these errors were encountered: