docker: fix configure tzdata interaction

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-09-15 00:33:29 +01:00
parent 01393a65d3
commit e79dd2c786
2 changed files with 3 additions and 1 deletions

View File

@@ -417,7 +417,7 @@ The very first time you launch Docker, create the container with:
You are now left inside a shell in the Docker guest.
From there, run the exact same commands that you would on a native install: <<getting-started>>
From there, run the exact same commands that you would on a native install: <<qemu-buildroot-setup>>.
The host git top level directory is mounted inside the guest, which means for example that you can use your host's GUI text editor directly on the files.

2
configure vendored
View File

@@ -78,6 +78,8 @@ pkgs="$pkgs libelf-dev"
# https://stackoverflow.com/questions/20010199/determining-if-a-process-runs-inside-lxc-docker
if [ -f /.dockerenv ]; then
# https://askubuntu.com/questions/909277/avoiding-user-interaction-with-tzdata-when-installing-certbot-in-a-docker-contai
export DEBIAN_FRONTEND=noninteractive
mysudo=
# https://askubuntu.com/questions/496549/error-you-must-put-some-source-uris-in-your-sources-list
sed -Ei 's/^# deb-src/deb-src/' /etc/apt/sources.list