Trendyol Tech
Published in

Trendyol Tech

A modern toolkit to start working with container images on macOS that meets your needs without requiring a Docker Daemon or even Docker Desktop

https://kubernetes.io/docs/tasks/administer-cluster/migrating-from-dockershim/check-if-dockershim-deprecation-affects-you/
https://twitter.com/iximiuz/status/1454407183383339008?s=20
# Use limactl shell command
$ limactl shell demo
lima@lima-demo:~$
# Use lima and LIMA_INSTANCE environment variable
$ export LIMA_INSTANCE=demo
$ lima
lima@lima-demo:~$
# Use ssh command
$ sh $(limactl show-ssh --format=args demo) lima@127.0.0.1
Last login: Thu Jan 13 19:04:38 2022 from 192.168.5.2
lima@lima-demo:~$
$ limactl stop demo
$ limactl delete demo --force
nerdctl.lima container run hello-world
docker.io/library/hello-world:latest: resolved |++++++++++++++++++++++++++++++++++++++|
index-sha256:975f4b14f326b05db86e16de00144f9c12257553bba9484fed41f9b6f2257800: done |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4: done |++++++++++++++++++++++++++++++++++++++|
config-sha256:feb5d9fea6a5e9606aa995e879d862b825965ba48de054caab5ef356dc6b3412: done |++++++++++++++++++++++++++++++++++++++|
layer-sha256:2db29710123e3e53a794f2694094b9b4338aa9ee5c40b930cb8063a1be392c54: done |++++++++++++++++++++++++++++++++++++++|
elapsed: 2.8 s total: 4.4 Ki (1.6 KiB/s)
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
<https://hub.docker.com/>
For more examples and ideas, visit:
<https://docs.docker.com/get-started/>
$ mkdir -p work
$ cd work
$ cat <<EOF | xargs -I{} echo {} > Dockerfile
FROM nginx
RUN echo "hello lima" > /usr/share/nginx/html/index.html
EOF
$ nerdctl.lima build -t lima-test .
[+] Building 15.5s (6/6) FINISHED
=> [internal] load build definition from Dockerfile 0.2s
=> => transferring dockerfile: 103B 0.1s
=> [internal] load .dockerignore
..
$ nerdctl.lima image list
REPOSITORY TAG IMAGE ID CREATED PLATFORM SIZE
hello-world latest 975f4b14f326 10 minutes ago linux/amd64 20.0 KiB
lima-test latest afc24ee83b24 16 seconds ago linux/amd64 149.1 MiB
$ nerdctl.lima container run -d -p 127.0.0.1:8080:80 lima-test
4de89ef0a94f5dfdf3e59164df35d36250afd62d40eacedd069a52dea6eec078
$ nerdctl -n “k8s.io” image list
rancher/kim <none> 20704973bbdb 33 hours ago linux/amd64 46.2 MiB
rancher/klipper-helm v0.6.6-build20211022 4bf16ca677f9 33 hours ago linux/amd64 232.0 MiB
rancher/klipper-lb v0.3.4 7156afc9b247 33 hours ago linux/amd64 8.6 MiB
rancher/local-path-provisioner v0.0.20 004134f27c6e 33 hours ago linux/amd64 34.0 MiB
rancher/mirrored-coredns-coredns
...
https://docs.google.com/spreadsheets/d/1ZT8m4gpvh6xhHYIi4Ui19uHcMpymwFXpTAvd3EcgSm4/edit#gid=0

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
developer-guy

🇹🇷KCD Turkey Organizer🎖Best Sigstore Evangelist🐦SSCS Twitter Community Admin✍️@chainguard_dev Fan📦Container Addict📅Organizer at @cloudnativetr•@devopstr