{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/1084703/feed/json -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/1084703", "feed_url": "https://matoken.org/blog/tag/1084703/feed/json", "language": "ja", "title": "1084703 – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "https://matoken.org/blog/?p=4386", "url": "https://matoken.org/blog/2025/01/18/docker-compose-stopped-working-in-debian-sid-environment/", "title": "Debian sid\u74b0\u5883\u3067Docker Compose\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u305f", "content_html": "
| \n Note \n | \n\n \n \n\u30d0\u30b0\u5831\u544a\u3057\u305f\u3068\u3053\u308d\uff0c2025-01-19(JST\u3067\u306f20\u65e5)\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u66f4\u65b0\u3055\u308c\uff0cdocker-compose\u30d1\u30c3\u30b1\u30fc\u30b8\u304cPython 3.13\u3067\u3082\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0ev2\u5bfe\u5fdc\u306f\u307e\u3060\uff0e \n\n \n\n\n\n \n \n\n\n\n \n \n
| \n
Debian sid\u3092\u518d\u8d77\u52d5\u3057\u305f\u3042\u3068\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u305fDocker Compose\u30b3\u30f3\u30c6\u30ca\u304c\u52d5\u3044\u3066\u3044\u307e\u305b\u3093\uff0e\u624b\u52d5\u3067\u8d77\u52d5\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\uff0e
\n$ docker-compose -v\nTraceback (most recent call last):\n File \"/usr/bin/docker-compose\", line 33, in <module>\n sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())\n ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/usr/bin/docker-compose\", line 25, in importlib_load_entry_point\n return next(matches).load()\n ~~~~~~~~~~~~~~~~~~^^\n File \"/usr/lib/python3.13/importlib/metadata/__init__.py\", line 179, in load\n module = import_module(match.group('module'))\n File \"/usr/lib/python3.13/importlib/__init__.py\", line 88, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"<frozen importlib._bootstrap>\", line 1387, in _gcd_import\n File \"<frozen importlib._bootstrap>\", line 1360, in _find_and_load\n File \"<frozen importlib._bootstrap>\", line 1331, in _find_and_load_unlocked\n File \"<frozen importlib._bootstrap>\", line 935, in _load_unlocked\n File \"<frozen importlib._bootstrap_external>\", line 1026, in exec_module\n File \"<frozen importlib._bootstrap>\", line 488, in _call_with_frames_removed\n File \"/usr/lib/python3/dist-packages/compose/cli/main.py\", line 5, in <module>\n import pipes\nModuleNotFoundError: No module named 'pipes'\n\n
\u305d\u3046\u3044\u3048\u3070\u5c11\u3057\u524d\u306bPython\u306eversion\u304c\u4e0a\u304c\u3063\u305f\u306e\u3067\u305d\u308c\u304c\u95a2\u4fc2\u3057\u3066\u3044\u305d\u3046\u3067\u3059\uff0e
\npipes\u95a2\u9023\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306fdocker.io/docker-compose\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f9d\u5b58\u306b\u306f\u898b\u5f53\u305f\u308a\u307e\u305b\u3093\uff0eapt-cache search\u3067\u3055\u304c\u3057\u3066\u3082\u898b\u5f53\u305f\u308a\u307e\u305b\u3093\uff0e
\npipes\u306fPython 3.11\u3067\u5ec3\u6b62\u3055\u308c\uff0c3.13\u3067\u524a\u9664\u3055\u308c\u305f\u3088\u3046\u3067\u3059\uff0e\u305d\u3057\u3066Debian sid\u306ePython\u306f\u5c11\u3057\u524d\u306b3.13\u306b\u4e0a\u304c\u3063\u3066\u3044\u307e\u3059\uff0e
$ python3 --version\nPython 3.13.1\n$ dpkg-query -W python3\npython3 3.13.1-2\n
Debian\u3068\u3057\u3066\u306fDocker Comose v1\u306f\u5ec3\u6b62\u3055\u308c\u3066\u3044\u308b\u306e\u3067v2\u306b\u4e0a\u3052\u305f\u3044\u3051\u3069go\u306a\u3069\u306e\u4f9d\u5b58\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u6b20\u5982\u3057\u3066\u3044\u308b\u305f\u3081v2\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u5316\u304c\u6b62\u307e\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\uff0e
\n\u3068\u3044\u3046\u611f\u3058\u3067Python 3.13\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u305fDebian sid\u3067\u306fdocker-compose\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u52d5\u304b\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3059\uff0e
\n\u6050\u3089\u304fDocker Compose v2\u304c\u964d\u308a\u3066\u304f\u308b\u307e\u3067\u306f\u52d5\u304b\u306a\u3044\u306e\u304b\u306a\u3068\uff0e
\u3068\u3044\u3046\u3053\u3068\u3067\u3068\u308a\u3042\u3048\u305a\u306fDocker\u8b39\u88fd\u306e\u3082\u306e\u3092\u5c0e\u5165\u3057\u3066\u51cc\u3050\u5fc5\u8981\u304c\u3042\u308a\u305d\u3046\u3067\u3059\uff0e
\n\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u5c0e\u5165\u3057\u307e\u3057\u305f\uff0e
\n$ sudo apt remove docker.io docker-cli docker-doc docker-compose podman-docker containerd runc\n
$ sudo apt install ca-certificates curl\n$ sudo install -m 0755 -d /etc/apt/keyrings\n$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo tee /etc/apt/keyrings/docker.asc\n$ gpg --show-keys /etc/apt/keyrings/docker.asc\npub rsa4096 2017-02-22 [SCEA]\n 9DC858229FC7DD38854AE2D88D81803C0EBFCD88\nuid Docker Release (CE deb) <docker@docker.com>\nsub rsa4096 2017-02-22 [S]\n$ sudo chmod a+r /etc/apt/keyrings/docker.asc\n$ w3m -dump https://download.docker.com/linux/debian/dists/\nIndex of linux/debian/dists/\n\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\n\n../\nbookworm/\nbullseye/\nbuster/\njessie/\nstretch/\nwheezy/\n\n\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\n$ echo \\\n \"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \\\n bookworm stable\" | \\\n sudo tee /etc/apt/sources.list.d/docker.list\ndeb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian bookworm stable\n$ sudo apt update\n$ sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin\n$ docker --version\nDocker version 27.5.0, build a187fa5\n$ docker compose version\nDocker Compose version v2.32.4\n
| \n Note \n | \n\ntrixie(testing), sid(unstable), experimental\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u306a\u3044\u3088\u3046\u306a\u306e\u3067bookworm(stable)\u7528\u3092\u5229\u7528\u3057\u307e\u3057\u305f\uff0e\n | \n
$ docker run hello-world\n\nHello from Docker!\nThis message shows that your installation appears to be working correctly.\n\nTo generate this message, Docker took the following steps:\n 1. The Docker client contacted the Docker daemon.\n 2. The Docker daemon pulled the \"hello-world\" image from the Docker Hub.\n (amd64)\n 3. The Docker daemon created a new container from that image which runs the\n executable that produces the output you are currently reading.\n 4. The Docker daemon streamed that output to the Docker client, which sent it\n to your terminal.\n\nTo try something more ambitious, you can run an Ubuntu container with:\n $ docker run -it ubuntu bash\n\nShare images, automate workflows, and more with a free Docker ID:\n https://hub.docker.com/\n\nFor more examples and ideas, visit:\n https://docs.docker.com/get-started/\n
$ cd $PATH_TO_COMPOSE\n$ docker compose up\n :\n