Created
May 29, 2020 10:09
-
-
Save fsoppelsa/b9c27503a070ed84f146fd6ad020b0ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ brew cask install podman | |
| $ cat <<EOF > Vagrantfile | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "generic/fedora32" | |
| config.vm.provider "virtualbox" do |v| | |
| v.memory = 4096 | |
| v.cpus = 4 | |
| end | |
| config.vm.provision "shell", inline: <<-SHELL | |
| dnf update | |
| dnf -y install podman | |
| SHELL | |
| end | |
| EOF | |
| $ vagrant up | |
| $ ssh-copy-id [email protected] -p 2222 # vagrant:vagrant | |
| $ alias podman='podman --remote-host 127.0.0.1 --username vagrant --port 2222' | |
| $ podman run -d nginx | |
| $ podman image list | |
| REPOSITORY TAG IMAGE ID CREATED SIZE | |
| docker.io/library/nginx latest 9beeba249f3e 13 days ago 131 MB | |
| $ podman ps | |
| CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
| fd8ff639d484 docker.io/library/nginx:latest nginx -g daemon o... 4 minutes ago Up 4 minutes ago compassionate_beaver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment