You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
408 B
Kotlin
12 lines
408 B
Kotlin
2 years ago
|
package org.domaindrivenarchitecture.provs.desktop.infrastructure
|
||
3 years ago
|
|
||
2 years ago
|
import org.domaindrivenarchitecture.provs.framework.core.Prov
|
||
2 years ago
|
import org.domaindrivenarchitecture.provs.framework.ubuntu.install.base.aptInstall
|
||
3 years ago
|
|
||
|
fun Prov.installDocker() = def {
|
||
|
aptInstall("containerd docker.io")
|
||
|
if (!chk("getent group docker")) {
|
||
|
cmd("sudo groupadd docker")
|
||
|
}
|
||
|
cmd("sudo gpasswd -a \$USER docker")
|
||
|
}
|