- apt-transport-https \
- ca-certificates \
- curl \
- gnupg-agent \
- software-properties-common
- if [ "$1" != "offline" ]; then
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- add-apt-repository \
- "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
- $(lsb_release -cs) \
- stable"
- apt-get update
- fi
- apt-get -y install docker-ce=18.06.0~ce~3-0~ubuntu
-}
-
-function install_podman_packages() {
- if [ "$1" != "offline" ]; then
- add-apt-repository -y ppa:projectatomic/ppa
- apt-get update
- fi
- apt-get -y install podman
-}