Toolbox: ๋„๊ตฌ ์ƒ์ž๋ฅผ ์ œ๊ฑฐํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2019๋…„ 12์›” 09์ผ  ยท  4์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: containers/toolbox

์ด ๋กœ๊ทธ๋ฅผ ์ฐธ์กฐํ•˜์‹ญ์‹œ์˜ค.

yajo<strong i="6">@yajolap</strong> ~> toolbox -v create -c test
toolbox: running as real user ID 1000
toolbox: resolved absolute path for /usr/bin/toolbox to /usr/bin/toolbox
toolbox: checking if /etc/subgid and /etc/subuid have entries for user yajo
toolbox: TOOLBOX_PATH is /usr/bin/toolbox
toolbox: running on a cgroups v1 host
toolbox: current Podman version is 1.6.2
toolbox: migration not needed: Podman version 1.6.2 is unchanged
toolbox: Fedora generational core is f31
toolbox: base image is fedora-toolbox:31
toolbox: container is test
toolbox: checking value /run/.heim_org.h5l.kcm-socket (Stream) of property Listen in sssd-kcm.socket
toolbox: parsing value /run/.heim_org.h5l.kcm-socket (Stream) of property Listen in sssd-kcm.socket
toolbox: checking if 'podman create' supports --ulimit host
<standard input>:693: warning [p 12, 5.0i]: cannot adjust line
<standard input>:694: warning [p 12, 5.2i]: cannot adjust line
toolbox: 'podman create' supports --ulimit host
toolbox: looking for image localhost/fedora-toolbox:31
toolbox: looking for image registry.fedoraproject.org/f31/fedora-toolbox:31
toolbox: base image fedora-toolbox:31 resolved to registry.fedoraproject.org/f31/fedora-toolbox:31
toolbox: checking if container test already exists
toolbox: checking if /usr is mounted read-only or read-write
toolbox: mount-point of /usr is /usr
toolbox: mount flags of /usr on the host are ro,relatime,seclabel
toolbox: /var/home/yajo canonicalized to /var/home/yajo
toolbox: checking if /home is a symbolic link to /var/home
toolbox: /home is a symbolic link to /var/home
toolbox: calling org.freedesktop.Flatpak.SessionHelper.RequestSession
toolbox: creating container test
Created container: test
Enter with: toolbox enter --container test
yajo<strong i="7">@yajolap</strong> ~> toolbox -v enter -c test
toolbox: running as real user ID 1000
toolbox: resolved absolute path for /usr/bin/toolbox to /usr/bin/toolbox
toolbox: checking if /etc/subgid and /etc/subuid have entries for user yajo
toolbox: TOOLBOX_PATH is /usr/bin/toolbox
toolbox: running on a cgroups v1 host
toolbox: current Podman version is 1.6.2
toolbox: migration not needed: Podman version 1.6.2 is unchanged
toolbox: Fedora generational core is f31
toolbox: base image is fedora-toolbox:31
toolbox: container is test
toolbox: checking if container test exists
toolbox: calling org.freedesktop.Flatpak.SessionHelper.RequestSession
toolbox: starting container test
toolbox: /etc/profile.d/toolbox.sh already mounted in container test
toolbox: inspecting entry point of container test
toolbox: entry point of container test is toolbox
toolbox: waiting for container test to finish initializing
toolbox: creating list of environment variables to forward
toolbox: COLORTERM=truecolor
toolbox: COLUMNS is unset
toolbox: DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
toolbox: DBUS_SYSTEM_BUS_ADDRESS is unset
toolbox: DESKTOP_SESSION=gnome
toolbox: DISPLAY=:1
toolbox: LANG=es_ES.UTF-8
toolbox: LINES is unset
toolbox: SHELL=/usr/bin/fish
toolbox: SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
toolbox: TERM=xterm-256color
toolbox: TOOLBOX_PATH is unset
toolbox: VTE_VERSION=5803
toolbox: WAYLAND_DISPLAY is unset
toolbox: XDG_CURRENT_DESKTOP=GNOME
toolbox: XDG_DATA_DIRS=/var/home/yajo/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/
toolbox: XDG_MENU_PREFIX=gnome-
toolbox: XDG_RUNTIME_DIR=/run/user/1000
toolbox: XDG_SEAT is unset
toolbox: XDG_SESSION_DESKTOP=gnome
toolbox: XDG_SESSION_ID is unset
toolbox: XDG_SESSION_TYPE=x11
toolbox: XDG_VTNR is unset
toolbox: created options for environment variables to forward
--env=COLORTERM=truecolor --env=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus --env=DESKTOP_SESSION=gnome --env=DISPLAY=:1 --env=LANG=es_ES.UTF-8 --env=SHELL=/usr/bin/fish --env=SSH_AUTH_SOCK=/run/user/1000/keyring/ssh --env=TERM=xterm-256color --env=VTE_VERSION=5803 --env=XDG_CURRENT_DESKTOP=GNOME --env=XDG_DATA_DIRS=/var/home/yajo/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/ --env=XDG_MENU_PREFIX=gnome- --env=XDG_RUNTIME_DIR=/run/user/1000 --env=XDG_SESSION_DESKTOP=gnome --env=XDG_SESSION_TYPE=x11 --env=COLUMNS=80 --env=LINES=24
toolbox: looking for /usr/bin/fish in container test
Error: non zero exit code: 1: OCI runtime error
toolbox: /usr/bin/fish not found in test; using /bin/bash instead
toolbox: running in container test:
toolbox: /bin/bash
toolbox: -l
โฌข[yajo<strong i="8">@toolbox</strong> ~]$ logout
yajo<strong i="9">@yajolap</strong> ~> toolbox -v rm test
toolbox: running as real user ID 1000
toolbox: resolved absolute path for /usr/bin/toolbox to /usr/bin/toolbox
toolbox: checking if /etc/subgid and /etc/subuid have entries for user yajo
toolbox: TOOLBOX_PATH is /usr/bin/toolbox
toolbox: running on a cgroups v1 host
toolbox: current Podman version is 1.6.2
toolbox: migration not needed: Podman version 1.6.2 is unchanged
Error: cannot remove container 0bee2a5ea59a4077c8b7d9709af12d77627d8939dbf90c820b9eeeca263980b7 as it is running - running or paused containers cannot be removed: container state improper
toolbox: failed to remove container test

๋„๊ตฌ ์ƒ์ž๋กœ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ์ œ๊ฑฐํ•˜๋ ค๋ฉด podman์œผ๋กœ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ์ˆ˜๋™์œผ๋กœ ์ค‘์ง€ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

yajo<strong i="6">@yajolap</strong> ~> podman container stop test
0bee2a5ea59a4077c8b7d9709af12d77627d8939dbf90c820b9eeeca263980b7
yajo<strong i="7">@yajolap</strong> ~> toolbox -v rm test
toolbox: running as real user ID 1000
toolbox: resolved absolute path for /usr/bin/toolbox to /usr/bin/toolbox
toolbox: checking if /etc/subgid and /etc/subuid have entries for user yajo
toolbox: TOOLBOX_PATH is /usr/bin/toolbox
toolbox: running on a cgroups v1 host
toolbox: current Podman version is 1.6.2
toolbox: migration not needed: Podman version 1.6.2 is unchanged

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

์ ์–ด๋„ ์˜ค๋ฅ˜ ๋กœ๊ทธ๊ฐ€ ๋” ๋„์›€์ด ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค ...

๋ชจ๋“  4 ๋Œ“๊ธ€

toolbox -v rm -f test ๋˜๋Š” toolbox -v rm --force test ์‹œ๋„ํ•˜์‹ญ์‹œ์˜ค. ์ปจํ…Œ์ด๋„ˆ๋ฅผ ์ค‘์ง€ํ•˜์ง€ ์•Š๋Š” ๋„๊ตฌ ์ƒ์ž์— ๋Œ€ํ•œ ์š”์ฒญ/์งˆ๋ฌธ์ด ์ด๋ฏธ ์žˆ์Šต๋‹ˆ๋‹ค.

Toolbox๊ฐ€ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ์ค‘์ง€ํ•˜์ง€ ์•Š๋Š” ๋™์ž‘์€ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ๋– ๋‚œ ์งํ›„ ์ค‘์ง€ํ•˜๋Š” ๊ฒƒ์ด ์ด๋ฅผ ์ฒ˜๋ฆฌํ•˜๋Š” ๊ฐ€์žฅ ์ตœ์ ์˜ ๋ฐฉ๋ฒ•์ด ์•„๋‹ˆ๊ธฐ ๋•Œ๋ฌธ์— ์˜๋„๋œ ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์‹คํ–‰ ์ค‘์ธ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ์ œ๊ฑฐํ•˜๋Š” "๊ณต์‹์ ์ธ" ๋ฐฉ๋ฒ•์€ @kronenpj ๊ฐ€ --force ์˜ต์…˜ ์‚ฌ์šฉ์„ ์ œ์•ˆํ•œ ๊ฒƒ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค .

๊ทธ๋Ÿฌ๋‚˜ ์ด๊ฒƒ์ด ๋˜ํ•œ ์ตœ์ ์˜ ํ–‰๋™์ด ์•„๋‹ˆ๋ผ๋Š” ๋ฐ ๋™์˜ํ•ฉ๋‹ˆ๋‹ค.

์ ์–ด๋„ ์˜ค๋ฅ˜ ๋กœ๊ทธ๊ฐ€ ๋” ๋„์›€์ด ๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค ...

๋‚˜๋Š” ๊ทธ๊ฒƒ์— ํ™•์‹คํžˆ ๋™์˜ํ•ฉ๋‹ˆ๋‹ค. ๋งˆ์Œ์— ์•ฝ๊ฐ„์˜ ๋ณ€ํ™”๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. _๊ณง_ ๋ณด๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰