Skip to content

Instantly share code, notes, and snippets.

@LinuxSuRen
Last active August 9, 2021 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LinuxSuRen/e2809dcd9200a004b7cb1f139849374a to your computer and use it in GitHub Desktop.
Save LinuxSuRen/e2809dcd9200a004b7cb1f139849374a to your computer and use it in GitHub Desktop.
Podman

Ubuntu 16.04.7 LTS

sudo apt-get update -qq
sudo apt-get install -qq -y software-properties-common uidmap
sudo add-apt-repository -y ppa:projectatomic/ppa
sudo apt-get update -qq
sudo apt-get -qq -y install podman

Podman does not support search images by a shortname. Such as, the image alpine from dockerhub. But it's possible to provide a default image registry.

You can add docker.io as a default registry after putting the following config into file /etc/containers/registries.conf

[registries.search]
registries = ["docker.io"]

More configuration items:

[registries.search] 
registries = ["reg1.example.com", "reg2.example.com"]

[registries.insecure] 
registries = ["reg3.example.com"]

[registries.block] 
registries = ['docker.io']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment