質問: docker / gcloud |インストールされていないか、pathで利用できないdocker-credential-gcloudを修正するにはどうすればよいですか? シンプルなdocker-composeコマンドを実行しようとしています。しかし、コンソールエラー:building patch-panel traceback (most recent call last): file "bin/docker-compose", line 6, in <module> file "compose/cli/main.py", line 71, in main file "compose/cli/main.py", line 127, in perform_command file "compose/cli/main.py", line 1080, in up file "compose/cli/main.py", line 1076, in up file "compose/project.py", line 475, in up file "compose/service.py", line 358, in ensure_image_exists file "compose/service.py", line 1082, in build file "site-packages/docker/api/build.py", line 251, in build file "site-packages/docker/api/build.py", line 313, in _set_auth_headers file "site-packages/docker/auth.py", line 96, in resolve_authconfig file "site-packages/docker/auth.py", line 127, in _resolve_authconfig_credstore file "site-packages/dockerpycreds/store.py", line 25, in __init__ dockerpycreds.errors.initializationerror: docker-credential-gcloud not installed or not available in path [4167] failed to execute script docker-compose pipインストーラーに問題があることを読んでいて、pythonバージョンです。しかし、2つの問題があります。wsl(linux)を使用しています。これは、手順が欠落しているため、少しトリッキーです。ソリューションから、私はdockerに慣れていません私はdocker-composeを実行したいだけです、そして私はできません。誰かがそれを修正する方法を教えてもらえますか?私のシステムに関するいくつかの情報:gcloud infoを実行した後google cloud sdk [232.0.0] platform: [linux, x86_64] ('linux', 'desktop-of5642b', '4.4.0-18329-microsoft', '#1-microsoft tue jan 29 15:04:00 pst 2019', 'x86_64', '') python version: [2.7.15+ (default, nov 28 2018, 16:27:22) [gcc 8.2.0]] python location: [/usr/bin/python2] site packages: [disabled] installation root: [/c/users/efsta/appdata/local/google/cloud sdk/google-cloud-sdk] installed components: docker-credential-gcr: [] core: [2019.01.27] gsutil: [4.35] bq: [2.0.40] system path: [/home/efsta/go//bin:/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/c/programdata/dockerdesktop/version-bin:/c/program files/docker/docker/resources/bin: /c/program files (x86)/intel/intel(r) management engine components/icls/:/c/program files/intel/intel(r) management engine components/icls/:/c/windows/system32:/c/windows:/c/windows/system32/wbem:/c/windows/system32/windowspowershell/v1.0/:/c/wi ndows/system32/openssh/:/c/program files (x86)/intel/intel(r) management engine components/dal:/c/program files/intel/intel(r) management engine components/dal:/c/program files (x86)/intel/intel(r) management engine components/ipt:/c/program fil es/intel/intel(r) management engine components/ipt:/c/users/efsta/scoop/shims:/c/users/efsta/appdata/local/microsoft/windowsapps:/c/users/efsta/appdata/local/programs/microsoft vs code/bin:/c/users/efsta/appdata/local/google/cloud sdk/google-clo ud-sdk/bin:/home/efsta/.dotnet/tools] python path: [/c/users/efsta/appdata/local/google/cloud sdk/google-cloud-sdk/lib/third_party:/c/users/efsta/appdata/local/google/cloud sdk/google-cloud-sdk/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk :/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload] cloud sdk on path: [true] kubectl on path: [false] installation properties: [/c/users/efsta/appdata/local/google/cloud sdk/google-cloud-sdk/properties] user config directory: [/home/efsta/.config/gcloud] active configuration name: [default] active configuration path: [/home/efsta/.config/gcloud/configurations/config_default] account: [dimitris@landoop.com] project: [k8-engine] current properties: [core] project: [k8-engine] account: [dimitris@landoop.com] disable_usage_reporting: [true] logs directory: [/home/efsta/.config/gcloud/logs] last log file: [/home/efsta/.config/gcloud/logs/2019.02.04/02.22.49.856181.log] git: [git version 2.20.1] ssh: [openssh_7.9p1 debian-5, openssl 1.1.1a 20 nov 2018] gcloud --versionを実行した後:google cloud sdk 232.0.0 bq 2.0.40 core 2019.01.27 docker-credential-gcr gsutil 4.35 docker infoおよびdocker compose version:containers: 0 running: 0 paused: 0 stopped: 0 images: 2 server version: 18.09.1 storage driver: overlay2 backing filesystem: extfs supports d_type: true native overlay diff: true logging driver: json-file cgroup driver: cgroupfs plugins: volume: local network: bridge host macvlan null overlay log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog swarm: inactive runtimes: runc default runtime: runc init binary: docker-init containerd version: 9754871865f7fe2f4e74d43e2fc7ccd237edcbce runc version: 96ec2177ae841256168fcf76954f7177af9446eb init version: fec3683 security options: seccomp profile: default kernel version: 4.9.125-linuxkit operating system: docker for windows ostype: linux architecture: x86_64 cpus: 2 total memory: 1.952gib name: linuxkit-00155d010201 id: 4tyn:gkj7:ix2l:jzdx:ifsu:csme:6veu:3srl:4ld2:nzcb:nydl:dtua docker root dir: /var/lib/docker debug mode (client): false debug mode (server): true file descriptors: 22 goroutines: 46 system time: 2019-02-04t00:28:06.9845313z eventslisteners: 1 registry: https://index.docker.io/v1/ labels: experimental: false insecure registries: 127.0.0.0/8 live restore enabled: false product license: community engine docker-compose version 1.23.2, build 1110ad01 docker-py version: 3.6.0 cpython version: 3.6.7 openssl version: openssl 1.1.0f 25 may 2017
回答: 問題がありました。 @adstwlearnの回答に続いて、〜/ .docker/config.jsonファイルを確認したところ、「credhelpers」のエントリの1つが「gcr」ではなく「gcloud」を参照していました。それを変更するだけで、後で何かを再構成する必要なく修正できました。