Docker 이미지를 사용하고 dockerfile을 작성하고 있습니다. 이 파일 (from)에는 locale.gen
언어와 함께 /etc/locale.gen
주석이 포함되어 있습니다.#
ca_ES.UTF-8 UTF-8 # Catalan (Spain)
de_DE.UTF-8 UTF-8 # German (Germany)
el_GR.UTF-8 UTF-8 # Greek (Greece)
en_GB.UTF-8 UTF-8 # English (United Kingdom)
en_NZ.UTF-8 UTF-8 # English (New Zealand)
en_US.UTF-8 UTF-8 # English (United States)
eo UTF-8 # Esperanto
es_AR.UTF-8 UTF-8 # Spanish (Argentina)
es_ES.UTF-8 UTF-8 # Spanish (Spanish)
es_UY.UTF-8 UTF-8 # Spanish (Uruguay)
eu_ES.UTF-8 UTF-8 # Basque (Spain)
fr_FR.UTF-8 UTF-8 # French (France)
it_IT.UTF-8 UTF-8 # Italian (Italy)
ja_JP.UTF-8 UTF-8 # Japanese (Japan)
ka_GE.UTF-8 UTF-8 # Georgian (Georgia)
ko_KR.UTF-8 UTF-8 # Korean (Korea)
mi_NZ.UTF-8 UTF-8 # Maori (New Zealand)
nl_NL.UTF-8 UTF-8 # Dutch (Netherlands)
pt_BR.UTF-8 UTF-8 # Portuguese (Brazil)
pt_PT.UTF-8 UTF-8 # Portuguese (Portugal)
ro_RO.UTF-8 UTF-8 # Romanian (Romania)
ru_RU.UTF-8 UTF-8 # Russian (Russia)
uk_UA.UTF-8 UTF-8 # Ukranian (Ukraine)
xh_ZA.UTF-8 UTF-8 # Xhosa (South Africa)
zh_CN.UTF-8 UTF-8 # Chinese (China)
간단한 명령을 실행하면 locale-gen
주석 때문에 실패하므로 해당 옵션을 사용해야 awk -F "#" '{print $1}'
하지만 여전히 실패합니다.
dockerfile에서 어떻게 보이는지 확인하세요.
#
답변1
Docker 파일을 변경하여 소스 파일을 복사한 다음 수정하는 것이 좋습니다.
#