Difference between revisions of "IT-SDK-Podman"

From wiki.samerhijazi.net
Jump to navigation Jump to search
(init)
(init)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
=ref=
 
=ref=
 +
*https://www.redhat.com/sysadmin/run-containers-mac-podman
 
*https://medium.com/rahasak/switching-from-docker-desktop-to-podman-on-macos-m1-m2-arm64-cpu-7752c02453ec
 
*https://medium.com/rahasak/switching-from-docker-desktop-to-podman-on-macos-m1-m2-arm64-cpu-7752c02453ec
 
*https://dev.to/kanekotic/replace-docker-desktop-with-podman-in-osx-29cl
 
*https://dev.to/kanekotic/replace-docker-desktop-with-podman-in-osx-29cl
 
*/etc/containers/registries.conf
 
*/etc/containers/registries.conf
 +
 
=init=
 
=init=
 
<pre class="code">
 
<pre class="code">
alias docker=podman
+
alias docker='podman'
 +
export KIND_EXPERIMENTAL_PROVIDER=podman
 +
-------------------------------------------
 +
podman system connection list
 
podman machine init
 
podman machine init
 
podman machine ls
 
podman machine ls
 
podman machine start
 
podman machine start
 
podman machine stop
 
podman machine stop
 +
podman machine set --rootful                ### switch to rootful mode (non-podman)
 
podman machine rm -f podman-machine-default
 
podman machine rm -f podman-machine-default
 
-------------------------------------------
 
-------------------------------------------
podman machine set --rootful
+
podman machine init --cpus 4 --memory 2048 --disk-size 100 --now sandbox
 +
podman machine start sandbox
 +
podman system connection default sandbox  ### Set the machine "sandbox" as the default connection.
 +
-------------------------------------------
 
sudo /opt/homebrew/Cellar/podman/4.7.2/bin/podman-mac-helper install
 
sudo /opt/homebrew/Cellar/podman/4.7.2/bin/podman-mac-helper install
podman machine stop/opt/homebrew/Cellar/podman/4.7.2/bin/podman-mac-helper; podman machine start/opt/homebrew/Cellar/podman/4.7.2/bin/podman-mac-helper
+
podman machine stop/opt/homebrew/Cellar/podman/4.7.2/bin/podman-mac-helper;  
 +
podman machine start/opt/homebrew/Cellar/podman/4.7.2/bin/podman-mac-helper
 
export DOCKER_HOST='unix:///Users/FEZSDZ7/.local/share/containers/podman/machine/qemu/podman.sock'
 
export DOCKER_HOST='unix:///Users/FEZSDZ7/.local/share/containers/podman/machine/qemu/podman.sock'
 +
-------------------------------------------
 +
API forwarding listening on: /var/run/docker.sock
 +
Docker API clients default to this address. You do not need to set DOCKER_HOST.
 
</pre>
 
</pre>

Latest revision as of 18:35, 30 July 2024

ref

init

alias docker='podman'
export KIND_EXPERIMENTAL_PROVIDER=podman
-------------------------------------------
podman system connection list
podman machine init
podman machine ls
podman machine start
podman machine stop
podman machine set --rootful                ### switch to rootful mode (non-podman)
podman machine rm -f podman-machine-default
-------------------------------------------
podman machine init --cpus 4 --memory 2048 --disk-size 100 --now sandbox
podman machine start sandbox
podman system connection default sandbox   ### Set the machine "sandbox" as the default connection.
-------------------------------------------
sudo /opt/homebrew/Cellar/podman/4.7.2/bin/podman-mac-helper install
podman machine stop/opt/homebrew/Cellar/podman/4.7.2/bin/podman-mac-helper; 
podman machine start/opt/homebrew/Cellar/podman/4.7.2/bin/podman-mac-helper
export DOCKER_HOST='unix:///Users/FEZSDZ7/.local/share/containers/podman/machine/qemu/podman.sock'
-------------------------------------------
API forwarding listening on: /var/run/docker.sock
Docker API clients default to this address. You do not need to set DOCKER_HOST.