root@acfc9c090855:/tmp# pip install pyinstaller Collecting pyinstaller Downloading pyinstaller-5.9.0-py3-none-manylinux2014_x86_64.whl (650 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 650.4/650.4 kB 11.6 MB/s eta 0:00:00 Requirement already satisfied: setuptools>=42.0.0 in /usr/local/lib/python3.11/site-packages (from pyinstaller) (67.6.1) Collecting altgraph Downloading altgraph-0.17.3-py2.py3-none-any.whl (21 kB) Collecting pyinstaller-hooks-contrib>=2021.4 Downloading pyinstaller_hooks_contrib-2023.1-py2.py3-none-any.whl (256 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 256.8/256.8 kB 40.6 MB/s eta 0:00:00 Installing collected packages: altgraph, pyinstaller-hooks-contrib, pyinstaller Successfully installed altgraph-0.17.3 pyinstaller-5.9.0 pyinstaller-hooks-contrib-2023.1 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
user@usernoMacBook-Pro Python % docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE python3 latest 9d1e9782a0e9 3 days ago 1.24GB python latest a8405b7e74cf 9 days ago 921MB docker101tutorial latest 6ef1a9b77478 6 weeks ago 47MB
user@usernoMacBook-Pro Python % docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES acfc9c090855 python3 "python3" 23 seconds ago Up 21 seconds 0.0.0.0:18080->8080/tcppython-c
docker exec -it コンテナ名 指定シェル コマンドでコンテナにアクセスします
user@usernoMacBook-Pro Python % docker exec -itpython-cbash root@acfc9c090855:/# pwd / root@acfc9c090855:/# ls bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var root@acfc9c090855:/# cd/mnt root@acfc9c090855:/mnt# pwd /mnt root@acfc9c090855:/mnt# ls -l total 4 -rw-r--r-- 1 root root 24 Mar 20 06:24 hello.py