Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit c44e5cd

Browse files
authored
Update Dockerfile for clearlinux
Add a workaround for docker bug moby/moby#31805 When using the overlay storage driver, a file modification is not detected by Docker when the file's modification time remains unchanged. Once dockerhub switches to graph driver that does not have this limitation, this workaround is not needed.
1 parent e67f4d2 commit c44e5cd

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

2.1/run/clearlinux/Dockerfile

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,23 @@ FROM clearlinux:latest
1818

1919
MAINTAINER Manohar Castelino "manohar.r.castelino@intel.com"
2020

21-
RUN swupd update -s && \
22-
swupd update && \
23-
swupd bundle-add containers-virt
21+
#Run swupd multiple time for now so that we upgrade across format bumps
22+
#This ensures you always have the latest clearlinux image even if the
23+
#one on dockerhub has not been updated
24+
#This also works around the overlay file system bug
25+
#Add a workaround for docker bug https://github.com/moby/moby/issues/31805
26+
RUN /bin/sh -c 'swupd update; \
27+
swupd update; \
28+
swupd update; \
29+
swupd update; \
30+
swupd update;'
31+
32+
RUN swupd bundle-add containers-virt
2433

2534
RUN mkdir -p /var/run/ && \
2635
mkdir -p /etc/docker/ && \
2736
mkdir -p /run/opencontainer/containers/
2837

29-
# Run swupd multiple time for now so that we upgrade across format bumps
30-
# This ensures you always have the latest clearlinux image even if the
31-
# one on dockerhub has not been updated
32-
RUN swupd update
33-
34-
RUN swupd update
35-
36-
RUN swupd update
37-
38-
RUN swupd update
39-
4038
RUN echo -e "#!/bin/bash\ndockerd --add-runtime cor=/usr/bin/cc-oci-runtime \
4139
--default-runtime=cor --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 \
4240
--storage-driver=vfs &> /tmp/docker.log &\n/usr/libexec/cc-proxy &" > \

0 commit comments

Comments
 (0)