Skip to content

Instantly share code, notes, and snippets.

@giuseppe
Last active December 14, 2017 10:11
Show Gist options
  • Save giuseppe/95f917fa271bcdc6555851cc4774d83a to your computer and use it in GitHub Desktop.
Save giuseppe/95f917fa271bcdc6555851cc4774d83a to your computer and use it in GitHub Desktop.
overlay ostree comparison test
#!/bin/sh
umount /var/lib/containers/storage/overlay2
umount /var/lib/containers/storage-ostree/overlay2
rm -rf /var/lib/containers/storage /var/lib/containers/storage-ostree
for i in gscrivano/container-engine \
gscrivano/cri-o-centos \
gscrivano/etcd \
gscrivano/flannel \
gscrivano/docker-centos \
gscrivano/net-snmp \
registry.fedoraproject.org/latest/etcd \
registry.fedoraproject.org/latest/flannel \
registry.fedoraproject.org/latest/container-engine \
gscrivano/guest-agent-centos \
fedora \
openshift/hello-openshift \
openshift/origin-docker-registry \
openshift/origin-metrics-heapster \
openshift/origin-pod \
openshift/origin-logging-curator ;
do
echo DOWNLOADING IMAGE $i
./skopeo copy docker://$i containers-storage:\[overlay2@/var/lib/containers/storage+/var/run/containers/storage,overlay2.override_kernel_check=1\]$i
echo DOWNLOADING IMAGE $i FOR OSTREE
./skopeo copy docker://$i containers-storage:\[overlay2@/var/lib/containers/storage-ostree+/var/run/containers/storage-ostree:overlay2.ostree_repo=/var/lib/containers/storage-ostree/overlay2/ostree/.repo,overlay2.override_kernel_check=1\]$i
done
du --summarize --si /var/lib/containers/storage /var/lib/containers/storage-ostree/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment