mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
M #: enable rc_sys autodetect for DH images (#1036)
This commit is contained in:
1 parent
34b80d5712
commit
40fc1a166f
2 files changed
+3
-2
No files matched your search
@@ -205,7 +205,8 @@ image_id=$(docker images -q one"$sid")
|
||||
#-------------------------------------------------------------------------------
|
||||
# Flatten container image
|
||||
#-------------------------------------------------------------------------------
|
||||
container_id=$(docker run -d "$image_id" /bin/true)
|
||||
# rm -f /.dockerenv to avoid external tools to autodetect as docker images
|
||||
container_id=$(docker run -d "$image_id" rm -f /.dockerenv)
|
||||
|
||||
docker export -o "$tarball" "$container_id" > /dev/null 2>&1
|
||||
|
||||
|
||||
@@ -19,4 +19,4 @@ RUN rc-update add sshd default && \
|
||||
rc-update add udev default && \
|
||||
rc-update add networking default
|
||||
|
||||
RUN echo 'rc_sys=""' >> /etc/rc.conf
|
||||
RUN sed -i '/rc_sys/s/^/#/' /etc/rc.conf
|
||||
Reference in new issue
Block a user