Skip to content

Creates linux vm that contains Podman, Buildah, Skopeo, and runc tools for running containers on MacOS

Notifications You must be signed in to change notification settings

michalgutowski/container-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

These scripts create a simple Oracle Linux 8 vm that contains Podman, Buildah, Skopeo, runc, git and other useful tools for playing with containers. You can use it as an alternative to Docker Desktop.

Quickstart

  1. Clone this repo:
git clone https://github.com/michalgutowski/container-tools.git
  1. Provision the vm with Vagrant:
cd container-tools
vagrant up
  1. Install podman on your MacOS
brew install podman
  1. Configure podman remote client on your MacOS. Run the following command in this directory:
podman-remote system connection add vagrant --identity `pwd`/id_rsa ssh://vagrant@192.168.99.100/run/user/1000/podman/podman.sock

This will add a default connection for user vagrant

  1. Test the connection
podman-remote info
  1. Check if you can pull and run an nginx container
podman-remote run -it --rm -d -p 8080:80 --name web nginx

Navigate to http://192.168.99.100:8080 and you should see nginx welcome screen.

You can also add following lines to you /etc/hosts file on your MacOS to use hostname instead of IP address.

192.168.99.100 podman

You can use vagrant suspend to simply suspend the vm when not needed and vagrant resume to start it up again.

Adding custom container registries to the lookup list

To add any custom image registries simply login to the vm and modify the registries.conf file:

vagrant ssh podman
vi /etc/containers/registries.conf

About

Creates linux vm that contains Podman, Buildah, Skopeo, and runc tools for running containers on MacOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages