a08e52fb3b
- ship preconfigured /etc/containers/registries.d/ files with containers-common Signed-off-by: Jindrich Novy <jnovy@redhat.com>
10 lines
590 B
Bash
Executable File
10 lines
590 B
Bash
Executable File
#!/bin/bash
|
|
spectool -f -g skopeo.spec
|
|
sed -i -e 's/^driver.*=.*/driver = "overlay"/' -e 's/^mountopt.*=.*/mountopt = "nodev,metacopy=on"/' storage.conf
|
|
[ `grep "keyctl" seccomp.json | wc -l` == 0 ] && sed -i '/\"kill\",/i \
|
|
"keyctl",' seccomp.json
|
|
sed -i '/\"socketcall\",/i \
|
|
"socket",' seccomp.json
|
|
sed -i 's/^#.*unqualified-search-registries.*=.*/unqualified-search-registries = ["registry.fedoraproject.org", "registry.access.redhat.com", "registry.centos.org", "docker.io"]/g' registries.conf
|
|
sed -i 's,#.*events_logger.*=.*"journald",events_logger = "file",' containers.conf
|