èæ¯
DockerHubã«ãã nginx:latest ã¤ã¡ã¼ã¸ããèµ·åããã³ã³ããå
ã§ ps
ãå©ããã
root@de0ff7733246:/# ps bash: ps: command not found
ã¨è¨ããã¦ãã¾ã£ãã®ã§ãã¤ã³ã¹ãã¼ã«ãã
ã¤ã³ã¹ãã¼ã«
- nginx:latest ã® Dockerfile ãã¡ãè¦ãã¦ã¿ãããDebianããã¼ã¹ã«ãªã£ã¦ããã®ã§ããã±ã¼ã¸è¿½å ã«ã¯
apt
ã使ãã°è¯ããã - topã¨ãps㯠procps ã£ã¦ããããã±ã¼ã¸ã«å
¥ã£ã¦ããããã
- thanks: psコマンドのインストール方法 #Docker - Qiita
apt update && apt install -y procps
ã¨ã¤ã¤
root@de0ff7733246:/# ps PID TTY TIME CMD 11 pts/0 00:00:00 bash 340 pts/0 00:00:00 ps
ãã£ãã
ä½è«
apt update
ã£ã¦ãæåããã¯ã¤ã³ã¹ãã¼ã«æ¸ã¿ããã±ã¼ã¸ãæåéãupdateãããã®ãããªå°è±¡ãåãããã©ãå®ã¯ããã±ã¼ã¸æ
å ±ãåå¾ããã ãã®æ¨¡æ§
# apt apt 1.4.8 (amd64) Usage: apt [options] command apt is a commandline package manager and provides commands for searching and managing as well as querying information about packages. It provides the same functionality as the specialized APT tools, like apt-get and apt-cache, but enables options more suitable for interactive use by default. Most used commands: list - list packages based on package names search - search in package descriptions show - show package details install - install packages remove - remove packages autoremove - Remove automatically all unused packages update - update list of available packages upgrade - upgrade the system by installing/upgrading packages full-upgrade - upgrade the system by removing/installing/upgrading packages edit-sources - edit the source information file See apt(8) for more information about the available commands. Configuration options and syntax is detailed in apt.conf(5). Information about how to configure sources can be found in sources.list(5). Package and version choices can be expressed via apt_preferences(5). Security details are available in apt-secure(8). This APT has Super Cow Powers.
ã¤ã³ã¹ãã¼ã«æ¸ã¿ããã±ã¼ã¸ãæåéãupdateããããã° upgrade
ã full-upgrade
ã使ãããã