Movatterモバイル変換


[0]ホーム

URL:


量子プログラミング入門→量子コンピューティングサービス構築入門

量子コンピューター初心者の筆者が日々学びながら、量子コンピュータ上で量子プログラミングできるようなるまでの学習日記を記録していきます。 内容は量子コンピューター入門者向けで、専門家の方からするとおかしな内容があるかもしれません。その際はコメント等でお知らせください!

Docker Build中に Configuring tzdataでハング


Docker build中に下記の状態でハングした場合の対策メモ
この状態におちいると、数字を入力しても先に進まなくなってしまう。


Configuring tzdata------------------Please select the geographic area in which you live. Subsequent configurationquestions will narrow this down by presenting a list of cities, representingthe time zones in which they are located. 1. Africa 4. Australia 7. Atlantic 10. Pacific 13. Etc 2. America 5. Arctic 8. Europe 11. SystemV 3. Antarctica 6. Asia 9. Indian 12. USGeographic area:
対策は、このTime Zone設定状態に入らないようにDockerfileで先にtime zone設定をしてしまう。
問題となる箇所の手前に下記のTime Zone設定を入れておくことでTime Zone設定を聞かれなくなる。
ENV TZ=Asia/TokyoRUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

例えばこんな感じです。

Dockerfile
FROM ubuntu:latestENV TZ=Asia/TokyoRUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezoneRUN apt-get -y install software-properties-commonRUN add-apt-repository ppa:alessandro-strada/ppaRUN apt updateRUN apt -y install google-drive-ocamlfuseRUN mkdir /mnt/googledrive

「サイト構築」カテゴリの最新記事

    コメント

     コメント一覧 (1)

      • 1. ito
      • September 10, 2024 16:25
      • たすかりました
      • 0
        northshorequantum

        northshorequant

        um

        likedしました

        liked
    コメントフォーム
    記事の評価
    • リセット
    • リセット

    最新記事
    記事検索
    カテゴリ別アーカイブ
    アーカイブ
    カテゴリー
    お問い合わせ

    ↑このページのトップヘ


    [8]ページ先頭

    ©2009-2025 Movatter.jp