{"id":4386,"date":"2025-01-18T05:48:00","date_gmt":"2025-01-17T20:48:00","guid":{"rendered":"https:\/\/matoken.org\/blog\/?p=4386"},"modified":"2025-01-20T18:02:33","modified_gmt":"2025-01-20T09:02:33","slug":"docker-compose-stopped-working-in-debian-sid-environment","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2025\/01\/18\/docker-compose-stopped-working-in-debian-sid-environment\/","title":{"rendered":"Debian sid\u74b0\u5883\u3067Docker Compose\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u305f"},"content":{"rendered":"<div id=\"preamble\">\n<div class=\"sectionbody\">\n<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"48\" height=\"48\" viewBox=\"0 0 24 24\"><rect width=\"24\" height=\"24\" fill=\"none\"\/><path fill=\"currentColor\" d=\"M21.81 10.25c-.06-.04-.56-.43-1.64-.43c-.28 0-.56.03-.84.08c-.21-1.4-1.38-2.11-1.43-2.14l-.29-.17l-.18.27c-.24.36-.43.77-.51 1.19c-.2.8-.08 1.56.33 2.21c-.49.28-1.29.35-1.46.35H2.62c-.34 0-.62.28-.62.63c0 1.15.18 2.3.58 3.38c.45 1.19 1.13 2.07 2 2.61c.98.6 2.59.94 4.42.94c.79 0 1.61-.07 2.42-.22c1.12-.2 2.2-.59 3.19-1.16A8.3 8.3 0 0 0 16.78 16c1.05-1.17 1.67-2.5 2.12-3.65h.19c1.14 0 1.85-.46 2.24-.85c.26-.24.45-.53.59-.87l.08-.24zm-17.96.99h1.76c.08 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16H3.85c-.09 0-.16.07-.16.16v1.58c.01.09.07.16.16.16m2.43 0h1.76c.08 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16H6.28c-.09 0-.16.07-.16.16v1.58c.01.09.07.16.16.16m2.47 0h1.75c.1 0 .17-.07.17-.16V9.5c0-.08-.06-.16-.17-.16H8.75c-.08 0-.15.07-.15.16v1.58c0 .09.06.16.15.16m2.44 0h1.77c.08 0 .15-.07.15-.16V9.5c0-.08-.06-.16-.15-.16h-1.77c-.08 0-.15.07-.15.16v1.58c0 .09.07.16.15.16M6.28 9h1.76c.08 0 .16-.09.16-.18V7.25c0-.09-.07-.16-.16-.16H6.28c-.09 0-.16.06-.16.16v1.57c.01.09.07.18.16.18m2.47 0h1.75c.1 0 .17-.09.17-.18V7.25c0-.09-.06-.16-.17-.16H8.75c-.08 0-.15.06-.15.16v1.57c0 .09.06.18.15.18m2.44 0h1.77c.08 0 .15-.09.15-.18V7.25c0-.09-.07-.16-.15-.16h-1.77c-.08 0-.15.06-.15.16v1.57c0 .09.07.18.15.18m0-2.28h1.77c.08 0 .15-.07.15-.16V5c0-.1-.07-.17-.15-.17h-1.77c-.08 0-.15.06-.15.17v1.56c0 .08.07.16.15.16m2.46 4.52h1.76c.09 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16h-1.76c-.08 0-.15.07-.15.16v1.58c0 .09.07.16.15.16\"\/><\/svg><!-- mdi:docker --><\/p>\n<div class=\"admonitionblock note\">\n<table  class=\" table table-hover\" >\n<tr>\n<td class=\"icon\">\n<div class=\"title\">Note<\/div>\n<\/td>\n<td class=\"content\">\n<div class=\"paragraph\">\n<p>\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<\/p>\n<\/div>\n<div class=\"quoteblock\">\n<blockquote>\n<div class=\"paragraph\">\n<p>I uploaded docker-compose 1.29.2-6.4 earlier today to fix that.  (I<br \/>\ncan&#8217;t help with packaging 2.x, though.)<\/p>\n<\/div>\n<\/blockquote>\n<div class=\"attribution\">\n&#8212; <a href=\"https:\/\/bugs.debian.org\/cgi-bin\/bugreport.cgi?bug=1040417#94\">#1040417 &#8211; docker-compose V1 is depreciated. &#8211; Debian Bug report logs<\/a>\n<\/div>\n<\/div>\n<div class=\"quoteblock\">\n<blockquote>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Replace pipes with shlex for Python 3.13 compatibility (closes:<br \/>\n#1084703).<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/blockquote>\n<div class=\"attribution\">\n&#8212; <a href=\"https:\/\/metadata.ftp-master.debian.org\/changelogs\/\/main\/d\/docker-compose\/docker-compose_1.29.2-6.4_changelog\">metadata.ftp-master.debian.org\/changelogs\/\/main\/d\/docker-compose\/docker-compose_1.29.2-6.4_changelog<\/a>\n<\/div>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/sources.debian.org\/patches\/docker-compose\/1.29.2-6.4\/remove-pipes.patch\/\">Package: docker-compose | Debian Sources<\/a> patch<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"paragraph\">\n<p>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<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ docker-compose -v\nTraceback (most recent call last):\n  File \"\/usr\/bin\/docker-compose\", line 33, in &lt;module&gt;\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 \"&lt;frozen importlib._bootstrap&gt;\", line 1387, in _gcd_import\n  File \"&lt;frozen importlib._bootstrap&gt;\", line 1360, in _find_and_load\n  File \"&lt;frozen importlib._bootstrap&gt;\", line 1331, in _find_and_load_unlocked\n  File \"&lt;frozen importlib._bootstrap&gt;\", line 935, in _load_unlocked\n  File \"&lt;frozen importlib._bootstrap_external&gt;\", line 1026, in exec_module\n  File \"&lt;frozen importlib._bootstrap&gt;\", line 488, in _call_with_frames_removed\n  File \"\/usr\/lib\/python3\/dist-packages\/compose\/cli\/main.py\", line 5, in &lt;module&gt;\n    import pipes\nModuleNotFoundError: No module named 'pipes'<\/pre>\n<\/div>\n<\/div>\n<p><!--more--><\/p>\n<div class=\"paragraph\">\n<p>\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<br \/>\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<br \/>\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<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/peps.python.org\/pep-0594\/\">PEP 594 \u2013 Removing dead batteries from the standard library | peps.python.org<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ python3 --version\nPython 3.13.1\n$ dpkg-query -W python3\npython3 3.13.1-2<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>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<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/bugs.debian.org\/cgi-bin\/bugreport.cgi?bug=1040417\">#1040417 &#8211; docker-compose V1 is depreciated. &#8211; Debian Bug report logs<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/www.docker.com\/blog\/new-docker-compose-v2-and-v1-deprecation\/\">Docker Compose: What\u2019s New, What\u2019s Changing, What\u2019s Next | Docker<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"paragraph\">\n<p>\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<br \/>\n\u6050\u3089\u304fDocker Compose v2\u304c\u964d\u308a\u3066\u304f\u308b\u307e\u3067\u306f\u52d5\u304b\u306a\u3044\u306e\u304b\u306a\u3068\uff0e<\/p>\n<\/div>\n<div class=\"paragraph\">\n<p>\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<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1\">\n<h2 id=\"_docker_com\u8b39\u88fddocker\u3092\u5c0e\u5165\">Docker.com\u8b39\u88fdDocker\u3092\u5c0e\u5165<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u5c0e\u5165\u3057\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/docs.docker.com\/engine\/install\/debian\/\">Debian | Docker Docs<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">Debian\u306e\u95a2\u9023\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u524a\u9664<\/div>\n<div class=\"content\">\n<pre>$ sudo apt remove docker.io docker-cli docker-doc docker-compose podman-docker containerd runc<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">Docker\u306ePGP\u9375\u306e\u767b\u9332<\/div>\n<div class=\"content\">\n<pre>$ 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) &lt;docker@docker.com&gt;\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<\/pre>\n<\/div>\n<\/div>\n<div class=\"admonitionblock note\">\n<table  class=\" table table-hover\" >\n<tr>\n<td class=\"icon\">\n<div class=\"title\">Note<\/div>\n<\/td>\n<td class=\"content\">\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<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">Docker\u52d5\u4f5c\u78ba\u8a8d<\/div>\n<div class=\"content\">\n<pre>$ 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\/<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">Docker Cmpose\u3082\u52d5\u4f5c\u3059\u308b\u306e\u3092\u78ba\u8a8d<\/div>\n<div class=\"content\">\n<pre>$ cd $PATH_TO_COMPOSE\n$ docker compose up\n   :<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Note \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 I upload [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":null,"activitypub_content_visibility":null,"activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":""},"categories":[7,6,199],"tags":[1176,1180,702,1177],"class_list":["post-4386","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-sid","tag-1176","tag-1180","tag-docker","tag-docker-compose"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=4386"}],"version-history":[{"count":5,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4386\/revisions"}],"predecessor-version":[{"id":4408,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4386\/revisions\/4408"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=4386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=4386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=4386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}