Ubuntu Docker ์ค์น
- kkumtree
2025-10-17T20:53:27+09:00
Docker ์ฌ์ฉ์ ์ํ ๊ธฐ๋ณธ์ ์ธ ์ค์น ๋ฐฉ๋ฒ ๋ฉ๋ชจ
0. ์ด์ ๋ฒ์ ์ ๊ฑฐ (์ ํ)
- ์งํ ์ค์ธ Docker ๊ด๋ จ ์์ ์ด ์์ด, prune ๋ช ๋ น์ด๋ฅผ ํตํด ๊ธฐ์กด Docker์ ๋ฆฌ์์ค๋ค์ ์ญ์ ์งํํ์์ต๋๋ค.
docker system prune -a

- ๊ณต์ ๋ฌธ์์ ๋ฐ๋ผ, ์๋ ์ปค๋งจ๋๋ก ์ญ์ ๋ฅผ ์งํํฉ๋๋ค.
(๊ฒธ์ฌ๊ฒธ์ฌ
autoremove๋ ์งํํฉ๋๋ค.)
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
sudo apt-get autoremove
# โฏ for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
# [sudo] password for kkumtree:
# Reading package lists... Done
# Building dependency tree... Done
# Reading state information... Done
# The following packages were automatically installed and are no longer required:
# bridge-utils containerd pigz runc ubuntu-fan
# Use 'sudo apt autoremove' to remove them.
# The following packages will be REMOVED:
# docker.io
# 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
# After this operation, 126 MB disk space will be freed.
# Do you want to continue? [Y/n] Y
# (Reading database ... 465886 files and directories currently installed.)
# Removing docker.io (27.5.1-0ubuntu3~24.04.2) ...
# '/usr/share/docker.io/contrib/nuke-graph-directory.sh' -> '/var/lib/docker/nuke-graph-directory.sh'
# Stopping 'docker.service', but its triggering units are still active:
# docker.socket
# Processing triggers for man-db (2.12.0-4build2) ...
# (...)
# Removing containerd (1.7.28-0ubuntu1~24.04.1) ...
# Processing triggers for man-db (2.12.0-4build2) ...
# Reading package lists... Done
# Building dependency tree... Done
# Reading state information... Done
# The following packages were automatically installed and are no longer required:
# bridge-utils pigz ubuntu-fan
# Use 'sudo apt autoremove' to remove them.
# The following packages will be REMOVED:
# runc
# 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
# After this operation, 34.3 MB disk space will be freed.
# Do you want to continue? [Y/n] Y
# (Reading database ... 465640 files and directories currently installed.)
# Removing runc (1.3.0-0ubuntu2~24.04.1) ...
# Processing triggers for man-db (2.12.0-4build2) ...
# โฏ sudo apt-get autoremove
# Reading package lists... Done
# Building dependency tree... Done
# Reading state information... Done
# The following packages will be REMOVED:
# bridge-utils pigz ubuntu-fan
# 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
# After this operation, 421 kB disk space will be freed.
# Do you want to continue? [Y/n] Y
# (Reading database ... 465612 files and directories currently installed.)
# Removing ubuntu-fan (0.12.16+24.04.1) ...
# ubuntu-fan: removing default /etc/network/fan configuration
# Removing bridge-utils (1.7.1-1ubuntu2) ...
# Removing pigz (2.8-1) ...
# Processing triggers for man-db (2.12.0-4build2) ...
1. Docker ๊ณต์ GPG key์ APT ๋ ํฌ์งํ ๋ฆฌ ์ถ๊ฐ
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

How to manage Microsoft packages with APT manager
- kkumtree
2025-03-02T22:31:49+09:00
Microsoft gave us a lot of programs as Ubuntu/Debian packages.
In this post, I will show you how to manage Edge and VSCode packages with APT package manager.
APT is stands for
Advanced Package Tool.
Why?
Simple. I want to upgrade them easily with APT package manager rather than using dpkg command.
sudo apt-get update -y && sudo apt-get upgrade -y
When I installed Microsoft Edge and Visual Studio Code, I used dpkg command.
But, It is little burdensome to manage packages with dpkg command in Update/Upgrade.
The following signatures were invalid: EXPKEYSIG
- kkumtree
2024-11-04T21:24:49+09:00
๋งค๋ฒ ์์ ํ๊ธฐ ๊ท์ฐฎ์์, ๋์ค์ ์ฐพ์์ ์ฐ๋ ค๊ณ ๋์ ์ด๋ ๋ฉ๋ชจ
๋ณดํต GPGํค ์ง์ฐ๊ณ ๋ค์ ๋ฐ์ผ๋ฉด ๋๋ค.
๊ทธ๋ฐ ๋ ์ด ์๋ค. ๋ฌด์ฌ๊ฒฐ์ sudo apt-get update๋ฅผ ์คํํ๋ ์๊ฐ, ์๋ฌ๊ฐ ๋จ๋ ๋ .

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.31/deb InRelease: The following signatures were invalid: EXPKEYSIG 234654DA9A296436 isv:kubernetes OBS Project <isv:[email protected]>
W: Failed to fetch https://pkgs.k8s.io/core:/stable:/v1.31/deb/InRelease The following signatures were invalid: EXPKEYSIG 234654DA9A296436 isv:kubernetes OBS Project <isv:[email protected]>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Zorin OS๋ก ์ฒ์ ์ ๋ฌธํ ๋๋ ์ด๊ฑฐ ๋ง์ฃผ์น๋ฉด ๋ฒํฐ๋ค ๋ฒํฐ๋ค ํฌ๋งทํ๋๋ฐ, ์ด์ ๋ ๋ญ… ์ด๋์ ํค ๋ง๋ฃ๋๋๋ณด๋ค ํ๊ณ ๊ทธ๋ ค๋ ค๋ ํ๋ค. =ใ =);
Terraform ์์ํ๊ธฐ w/Minimal Ubuntu
- kkumtree
2023-08-31T22:21:08+09:00
์ด๋ฒ์๋ CloudNet@์์ ์งํํ๋ Terraform ์คํฐ๋(์ดํ, T101)์ ์ฐธ์ฌํ์ต๋๋ค.
Terraform์ ์ฐ๋ฉด ์ ์ข์์ง๋ ์์ธํ๊ณ ์ ๋ฌธ์ ์ธ ๊ธ์ด ์์ผ๋ฏ๋ก, ์ฐธ๊ณ ํ์๋ฉด ์ข์ ๊ฒ ๊ฐ์ต๋๋ค. (๋งํฌ: 44bits)
์์ ์ ํ
๋ผํผ์ ์ผ๋ ์ ์ด ์์ง๋ง, Moduleํ๊ฐ ์ด๋ ต๊ธฐ๋ ํ๊ณ
์ด๋ฒ ๊ธฐํ์ ํ
๋ผํผ ์ ๊ฐ์ ๋ค์ ๋ณต๊ธฐํ๋ ๋ง์์ผ๋ก ์ฐธ์ฌํ์ต๋๋ค.
์ฌ์ฉํ ๊ต์ฌ๋ [ํ ๋ผํผ์ผ๋ก ์์ํ๋ IaC] ์ ๋๋ค.
์ด๋ฒ์๋ Terraform ์ด๊ธฐ ์
์
์ ๋ํด, ์ดํด๋ณด๊ณ
์ํ์ผ์ Canonical ๊ณต์ Minimal Ubuntu(ARM64) AMI๋ฅผ ์ค์นํด๋ณด๊ฒ ์ต๋๋ค.
- Terraform ์ค์น
- tfenv ์ฌ์ฉ๊ณผ .tf ์์ฑ ๋ฐ๋ผํ๊ธฐ
- Hello World in terraform
- Terraform ์จ๋ณด๊ธฐ
์์ผ๋ก ์งํํฉ๋๋ค.
Terraform ์ค์น
Terraform์ Linux ํ๊ฒฝ(Ubuntu ๊ธฐ์ค)์์ ์ค์นํ ์ ์๋ ๋ฐฉ๋ฒ์ด 3๊ฐ์ง ์ ๋ ์์ต๋๋ค.
์ต์ ๋ด์ฉ์ Terraform CLI์์ ํ์ธํ ์ ์์ต๋๋ค.
Release file for URL is not valid yet ํด๊ฒฐ ๋ฐฉ๋ฒ
- kkumtree
2023-06-29T02:28:34+09:00
์ต๊ทผ WSL๋ฅผ ์ฐ๊ฒ ๋๋ฉด์, ํ ๊ฐ์ง ์ด์๊ฐ ์๊ฒผ๋ค.
APT repo๋ฅผ ์
๋ฐ์ดํธ ํ๋ฉด ์๋์ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค.
์ด๊ฒ์ ๊ฒ ์๋๋ณด๊ณ ํด๊ฒฐ๋ฒ์ ์ ์ด๋ณด๊ณ ์ ํ๋ค.

์ค๋ฅ ์ฆ์์ ๋ฆด๋ฆฌ์ค ํ์ผ์ด ์กด์ฌํ์ง ์๋๋ฐ, 5๋ถ 1์ด๋์ ์ ํจํ์ง ์๋๋ค๊ณ ํ๋ค.
๋ฌด์จ ๋ง์ธ๊ฐ ์ถ์๋ฐ, 5๋ถ ์๋ค๊ฐ ์
๋ฐ์ดํธ ํด๋ณด๋ผ๋ ๊ฒ์ด๋ค.
์์ธ
์ค๋ซ๋์ ์ ์ ๋ชจ๋๋ก ๋์ด์ ์๊ฐ ๋๊ธฐํ๊ฐ ์๋ ๊ฒ์ผ๋ก ๋ณด์ธ๋ค.
์ฌ๋ถํ
ํ์ง ์์ผ๋ ค๊ณ ํ๊ธฐ์, ํด๊ฒฐ์ ์ํด ๋ ๋ง์ ์๊ฐ์ ๋ณด๋๋ค.
Linux Runlevel - ๋ฐ๋ ๋ฒจ/๋ถํธ๋ ๋ฒจ
- kkumtree
2023-06-22T16:07:05+09:00
CPU๋ฅผ 1600X์์ 5700X๋ก ์
๊ทธ๋ ์ด๋๋ฅผ ์งํํ๊ธฐ์ ์์,
RunLevel(๋ฐ๋ ๋ฒจ/๋ถํธ๋ ๋ฒจ)์ ๋ํด ํ๋ฒ ๋ฉ๋ชจํ๊ณ ์ ํจ.
Runlevel
-
7๊ฐ์ง ๋ ๋ฒจ์ด ์กด์ฌ
- man runlevel ์ฐธ๊ณ
-
Level 5์ ์ ์ธํ๊ณ ๋, cli ํ๊ฒฝ์์๋ง ๊ตฌ๋
-
Linux Standard Base ๊ธฐ์ค
ls -l /lib/systemd/system/runlevel?.target๋ช ๋ น์ด๋ก ํ์ธ ๊ฐ๋ฅ
| RunLevel | EN | ์ค๋ช | ๋น๊ณ |
|---|---|---|---|
| 0 | Power Off | ์์คํ ์ข ๋ฃ(์ค๋จ/Halt) | |
| 1 | Rescue | ์์คํ ๋ณต๊ตฌ | ๋จ์ผ ์ฌ์ฉ์ ๋ชจ๋ |
| 2 | Multi-User | ๋ค์ค ์ฌ์ฉ์(ํ ์คํธ ๋ชจ๋, ๋คํธ์ํฌ ์๋น์ค X) | ์ฌ์ฉ X (์ฌ์ฉ์ ์ ์ ๊ฐ๋ฅ) |
| 3 | Multi-User | ๋ค์ค ์ฌ์ฉ์(ํ ์คํธ ๋ชจ๋) | |
| 4 | Multi-User | ์๋ | ์ฌ์ฉ X (์ฌ์ฉ์ ์ ์ ๊ฐ๋ฅ) |
| 5 | Graphical | ๋ค์ค ์ฌ์ฉ์ ๋ชจ๋ (๊ทธ๋ํฝ ๋ชจ๋) | X-window ๊ธฐ๋ฐ |
| 6 | Reboot | ์์คํ ๋ฆฌ๋ถํ |
์ด์์ฒด์ (Ubuntu 22.04 ๊ธฐ์ค)๋ด ํ์ธ
- su ๋ชจ๋์์. target์ ๊ธฐ๋ฐ์ผ๋ก ๋งํน๋์ด ์์์ ํ์ธ
ls -al /lib/systemd/system/runlevel?.target: defaultls -al /etc/systemd/system | grep runlevel?.target.wants: ์ฌ์ฉ์ ์ ์์ฉ ํด๋
sudo su
ls -l /lib/systemd/system/runlevel?.target*

Ubuntu Pro๋ฅผ ์ ์ฉํ๊ณ ์ฌ์ฉํด๋ณด๊ธฐ
- kkumtree
2023-03-17T11:14:50+09:00
ํํ ๋ฆฌ์ผ ๋ ๋ฒจ์ ๊ฒ์๋ฌผ์
๋๋ค.
๋ชจ๋ ์ ๋ณด๋ https://ubuntu.com/pro/tutorial ์ ๊ธฐ์ดํฉ๋๋ค.
๊ธฐํ ์ด๊ธฐ ๊ตฌ์ฑ ์ค ์ด์๋ ์๋๋ ์ฐธ๊ณ ํ์๊ธฐ ๋ฐ๋๋๋ค.
https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/index.html
๊ณ๊ธฐ
ํ์๊ฐ ๊ฐ์ธ ๋ฐ์คํฌํ์ผ๋ก ์ฌ์ฉํ๋ Ubuntu ๋ฒ์ ์ด 22.10 (Kinetic Kudu), 23.04 (Lunar Lobster) ์ด๊ธฐ์, Ubuntu Pro๋ฅผ ์ ์ฉํด๋ณผ ๊ธฐํ๊ฐ ์์๋ค.
์ด๋ฒ์ ์ง์ธ ๋ถ์ผ๋ก๋ถํฐ ์ ๊ณต๋ฐ์ ์์ธ์ค๋ฉ(XSLAB)์ฌ์ ARM ๊ธฐ๋ฐ Vraptor SQ nano๋ฅผ
ํด๋ฆฐ์ค์นํ๊ณ ๋๋ Ubuntu 20.04.6 LTS (Focal Fossa) ๋ฒ์ ์ด์๊ธฐ์, Ubuntu Pro๋ฅผ ์ ์ฉํด๋ณด๊ธฐ๋ก ํ๋ค.
ํด๋น ์ ํ์ ๋ณด๋ผ๋ชฐ/voramall์์๋ ๋ง๋๋ณผ ์ ์๋ค.
Ubuntu Pro๋?
Ubuntu Pro๋ Ubuntu์ ๊ตฌ๋ ์ํ์ผ๋ก, ๋ณด์ ๋ฑ์ ์ง์ ๊ธฐ๋ฅ์ ์ถ๊ฐํ ์๋น์ค๋ก ์ฌ์ ์ ๋ณด์ ์ทจ์ฝ์ ์ ๋น ๋ฅด๊ฒ ๋ณด์ํด์ ๋ฐ์ดํฐ๋ฅผ ๋ณดํธํ๋๊ฒ ์ฌ๋ฌ๋ชจ๋ก ์ ๊ฐ๋์ง ์์ ๊น ์ถ๊ธฐ์ ์ธ์ ๊น์๋ ํ๋ก๋ํธ์๋ค.