diff --git a/content/Adding container images to the Rancher Desktop registry and pulling them.md b/content/Adding container images to the Rancher Desktop registry and pulling them.md new file mode 100644 index 000000000..bf55a4f72 --- /dev/null +++ b/content/Adding container images to the Rancher Desktop registry and pulling them.md @@ -0,0 +1,14 @@ + +When you build an image locally using `docker build` it will be added to the image registry on your workstation. + +You can pull it into the Rancher Desktop Kubernetes cluster as follows: + +`kubectl run zk --image=zettelkasten-server:latest --image-pull-policy=Never` + +The image pull policy of Never will prevent the kubelet from trying to pull the image. You are giving the instruction that the image is somehow already present, and this is true because it's available in the Rancher Desktop registry. Pretty clean. And it is a nice workflow in my opinion. + +## Links: + + + +202404010807 \ No newline at end of file diff --git a/content/Building docker images on Mac M1 - M2 - Silicon.md b/content/Building docker images on Mac M1 - M2 - Silicon.md new file mode 100644 index 000000000..c510f8d6f --- /dev/null +++ b/content/Building docker images on Mac M1 - M2 - Silicon.md @@ -0,0 +1,17 @@ + +Must include ` +```bash +docker build --platform amd64 . +``` + +or add this in dockerfile + +```yaml +FROM --platform=amd64 debian +... +``` +## Links: +[creating amd64 docker image on m1 - Stack Overflow](https://stackoverflow.com/questions/68881910/creating-amd64-docker-image-on-m1) + + +202403311844 \ No newline at end of file diff --git a/content/Containers.md b/content/Containers.md index a46fac235..2260e5246 100644 --- a/content/Containers.md +++ b/content/Containers.md @@ -1,6 +1,9 @@ [[Managing permissions for GitHub Container Registry]] +[[Building docker images on Mac M1 - M2 - Silicon]] + +[[Rancher Desktop]] ## Links: diff --git a/content/Get up after 30 minutes of trying to fall asleep or being awake.md b/content/Get up after 30 minutes of trying to fall asleep or being awake.md index 4ceeed467..a0f25bee7 100644 --- a/content/Get up after 30 minutes of trying to fall asleep or being awake.md +++ b/content/Get up after 30 minutes of trying to fall asleep or being awake.md @@ -11,5 +11,4 @@ The reasoning behind this is that the brain needs to be trained to exclusively a ## Links: - 202404010724 \ No newline at end of file