λ²κ·Έ μ€λͺ
λꡬ μμ λ²μ 0.0.97λ‘ μ
κ·Έλ μ΄λν ν λ μ΄μ λꡬ μμλ₯Ό μμν μ μμ΅λλ€.
toolbox enter work
μΆλ ₯:
DEBU Running as real user ID 1000
DEBU Resolved absolute path to the executable as /usr/bin/toolbox
DEBU Running on a cgroups v1 host
DEBU Checking if /etc/subgid and /etc/subuid have entries for user x
DEBU TOOLBOX_PATH is /usr/bin/toolbox
DEBU Toolbox config directory is /home/x/.config/toolbox
DEBU Current Podman version is 2.1.1
DEBU Old Podman version is 2.1.1
DEBU Migration not needed: Podman version 2.1.1 is unchanged
DEBU Resolving container and image names
DEBU Container: 'work'
DEBU Image: ''
DEBU Release: ''
DEBU Resolved container and image names
DEBU Container: 'work'
DEBU Image: 'fedora-toolbox:31'
DEBU Release: '31'
DEBU Checking if container work exists
DEBU Inspecting mounts of container work
DEBU Starting container work
DEBU Inspecting entry point of container work
DEBU Entry point PID is a float64
DEBU Entry point of container work is toolbox (PID=0)
Error: invalid entry point PID of container work
μ λ°μ΄νΈ μ νμ μμ±λ 컨ν μ΄λμ μΆλ ₯μ λμΌν©λλ€. λꡬ μμλ 0.0.96μΌλ‘ λ€μ΄κ·Έλ μ΄λν ν μμν μ μμΌλ©° μμλλ©΄ 0.0.97μ μ λ ₯ν μ μμ΅λλ€.
νλμ μ¬ννλ λ°©λ² λ¨κ³
μμλλ νλ
λꡬ μμκ° μμλμμ΅λλ€
μ€μ νλ
Error: invalid entry point PID of container work
μ€λ₯κ° λ°μνκ³ λꡬ μμκ° μμλμ§ μμ΅λλ€.
toolbox --version
μΆλ ₯(v0.0.90+)
toolbox version 0.0.97
λꡬ μμ ν¨ν€μ§ μ 보( rpm -q toolbox
)
toolbox-0.0.97-1-x86_64 (arch)
podman version
μΆλ ₯
Version: 2.1.1
API Version: 2.0.0
Go Version: go1.15.2
Git Commit: 9f6d6ba0b314d86521b66183c9ce48eaa2da1de2
Built: Sat Sep 26 16:50:37 2020
OS/Arch: linux/amd64
Podman ν¨ν€μ§ μ 보( rpm -q podman
)
podman-2.1.1-1-x86_64 (arch)
OSμ λν μ 보
μμΉλ¦¬λ
μ€
λλ λκ°μ λ¬Έμ κ° λ°μν©λλ€ (Arch Linuxμμλ). 0.0.96μΌλ‘ λ€μ΄ κ·Έλ μ΄λνλ©΄ μ μκ² λμμ΄λμμ΅λλ€.
λ€μμ Fedora 32 λꡬ μμμ λν Podman λ‘κ·Έμ λλ€.
$ podman logs fedora-toolbox-32
level=debug msg="Running as real user ID 0"
level=debug msg="Resolved absolute path to the executable as /usr/bin/toolbox"
level=debug msg="TOOLBOX_PATH is /usr/bin/toolbox"
level=debug msg="XDG_RUNTIME_DIR is unset"
level=debug msg="XDG_RUNTIME_DIR set to /run/user/1000"
level=debug msg="Creating /run/.toolboxenv"
level=debug msg="Monitoring host"
level=debug msg="Path /run/host/etc exists"
level=debug msg="Resolved /etc/localtime to /usr/share/zoneinfo/Europe/Amsterdam"
Error: /etc/localtime points to unknown location
λλ κ°μ κ²μ λ³Έλ€
level=debug msg="Running as real user ID 0"
level=debug msg="Resolved absolute path to the executable as /usr/bin/toolbox"
level=debug msg="TOOLBOX_PATH is /usr/bin/toolbox"
level=debug msg="XDG_RUNTIME_DIR is unset"
level=debug msg="XDG_RUNTIME_DIR set to /run/user/1000"
level=debug msg="Creating /run/.toolboxenv"
level=debug msg="Monitoring host"
level=debug msg="Path /run/host/etc exists"
level=debug msg="Preparing to redirect /etc/localtime to /run/host/etc/localtime"
level=debug msg="/run/host/etc/localtime is a symbolic link"
level=debug msg="Redirecting /etc/localtime to /run/host/etc/localtime"
level=debug msg="Resolved /etc/localtime to /usr/share/zoneinfo/Europe/Copenhagen"
Error: /etc/localtime points to unknown location
μ΄κ²μ 4c9b80aee2b2ee3162b82e309718a23792d0e103μΌλ‘ μΈν΄ λ°μν μ μμ΅λκΉ?
Manjaro(μμΉ κΈ°λ°)μμ λμΌν λ¬Έμ κ° λ°μνμ΅λλ€. 컀λ°μ μ§ννλ©΄μ b9a0bd5f0c2a2421ec15eea286ca20f03b7152d2κ° λ²μΈμμ λ°κ²¬νμ΅λλ€. 4c9b80aee2b2ee3162b82e309718a23792d0e103μ΄ λ§μ§λ§μΌλ‘ μ¬λ°λ₯΄κ² μλνλ κ²μΌλ‘ 보μ λλ€.
Arch Linuxμμ 0.0.98.1μ μ¬μ©ν΄ λ³Έ μ¬λμ΄ μμ΅λκΉ?
κΆκΈν΄μ κ·νμ Arch νΈμ€νΈ μμ€ν
μλ /etc/localtime
μμ΅λκΉ?
μ, μμΉ νΈμ€νΈμλ /etc/localtimeμ΄ μμ΅λλ€. /usr/share/zoneinfo/μ λν μ¬λ³Όλ¦ λ§ν¬μ
λλ€.
λ¬Έμ λ λꡬ μμμ λ€μμ΄ μλ€λ κ²μ
λλ€.
const zoneInfoRoot = "/run/host/usr/share/zoneinfo"
if !strings.HasPrefix(localTimeEvaled, zoneInfoRoot) {
return errors.New("/etc/localtime points to unknown location")
}
zoneInfoRoot λ₯Ό "/usr/share/zoneinfo"
νλ©΄ λꡬ μμκ° μ λλ‘ μλν©λλ€.
updateTimeZoneFromLocalTime()
νΈμΆνκΈ° μ μ /etc/localtime λ§ν¬λ /run/host/etc/localtimeμ΄ κ°λ¦¬ν€λ κ²κ³Ό λμΌν κ²½λ‘λ₯Ό κ°λ¦¬ν€λλ‘ μ
λ°μ΄νΈλ©λλ€.
νΈμ€νΈ νμΌμ΄ λꡬ μμμ λν΄ μ무κ²λ λͺ¨λ₯΄κΈ° λλ¬Έμ /etc/localtimeμ΄ /run/hostλ₯Ό κ°λ¦¬μΌμΌ νλ λ°©λ²μ μμ§ λͺ»ν©λλ€.
λ°λΌμ λ΄κ° λμΉ κ²μ΄ μλλ©΄ λ€λ₯Έ μ¬λμκ² λͺ
λ°±ν μλ μμ§λ§ zoneInfoRoot
λ λ¨μν λ³κ²½/κ³ μ λμ΄μΌ ν©λλ€. /etc/localtimeμ΄ /run/host/usr/share/zoneinfo/... λ° /usr/share/zoneinfo/...λ₯Ό κ°λ¦¬ν€λ λ κ°μ§ μ¬μ© μ¬λ‘κ° μλ κ²½μ° λ κ°μ§ κ°λ₯μ±μ λͺ¨λ νμΈν μ μμ΅λλ€. μΌμΉνλ μ λμ¬λ₯Ό κΈ°λ°μΌλ‘ timeZone
λ₯Ό νμΈν©λλ€.
μ, μμΉ νΈμ€νΈμλ /etc/localtimeμ΄ μμ΅λλ€. μ λν μ¬λ³Όλ¦ λ§ν¬μ λλ€.
/usr/share/zoneinfo/.
μ’μ, Fedora CoreOS μ μν© κ³Ό
μ΄ λ¬Έμ λ https://github.com/containers/toolbox/pull/634μμ ν΄κ²°ν΄μΌ ν©λλ€.
κ·Έλ¬λ Archμ Ubuntu λͺ¨λ μλ μ¬λ³Όλ¦ λ§ν¬λ₯Ό μ¬μ©ν΄μΌ νλ€λ μ μ μΈκΈν΄μΌ ν©λλ€. κ·Έλ€μ΄ κ·Έλ¬λ€λ©΄ μλ μ¬λ³Όλ¦ λ§ν¬κ° chrootμ κ°μ μν©μ μ²λ¦¬ ν μ ββμκΈ° λλ¬Έμ μ΄κ²μ κ³μ μλν©λλ€. μ΄κ²μ΄ λ μ’μ΅λλ€. μλ₯Ό λ€μ΄ Fedora Workstationμλ λ€μμ΄ μμ΅λλ€.
$ ls -l /etc/localtime
lrwxrwxrwx. 1 root root 35 Jan 5 18:20 /etc/localtime -> ../usr/share/zoneinfo/Europe/Prague
λ°λ©΄ Ubuntu 18.04μμλ λ€μμ λ³Ό μ μμ΅λλ€.
$ ls -l /etc/localtime
lrwxrwxrwx 1 root root 33 lis 11 16:21 /etc/localtime -> /usr/share/zoneinfo/Europe/Prague
κ·Έλ¬λ timedatectl
λ₯Ό μ¬μ©νλ©΄ λ€μκ³Ό κ°μ΄ μμ λ©λλ€ .
$ timedatectl set-timezone Europe/Prague
$ ls -l /etc/localtime
lrwxrwxrwx 1 root root 35 led 12 20:29 /etc/localtime -> ../usr/share/zoneinfo/Europe/Prague
μ, /etc/localtime μ¬λ³Όλ¦ λ§ν¬λ₯Ό μ λ λ§ν¬λ‘ λ³κ²½νλ κ²μ μ¬μ© κ°λ₯ν ν΄κ²° λ°©λ²μ λλ€. μΌλ¨ μ΄κ²μ μ¬μ©νκ² μ΅λλ€. κ°μ¬ν©λλ€.
νμ§λ§ #634λ λ³ν©λμ΄μΌ νλ€κ³ μκ°ν©λλ€. λλ κ·Έλ¬ν μ λ μ¬λ³Όλ¦ λ§ν¬λ₯Ό μ§μνμ§ μλ κ²μ΄λ³λ‘ μ€μνμ§ μλ€κ³ μκ°ν©λλ€.
νμ. μ΄κ²μ΄ μ¬μ ν ν΄κ²°λμ§ μμλ€κ³ μκ°λλ©΄ λ€μ μ΄κ±°λ μ견μ λ¨κ²¨μ£ΌμΈμ.
Toolboxλ₯Ό ν μ€νΈν΄ μ£Όμ μ κ°μ¬ν©λλ€.
κ°μ₯ μ μ©ν λκΈ
λλ λκ°μ λ¬Έμ κ° λ°μν©λλ€ (Arch Linuxμμλ). 0.0.96μΌλ‘ λ€μ΄ κ·Έλ μ΄λνλ©΄ μ μκ² λμμ΄λμμ΅λλ€.
λ€μμ Fedora 32 λꡬ μμμ λν Podman λ‘κ·Έμ λλ€.