私はメソスを作り、hereの指示に従ってメゾスのドッカーイメージを使いました。以下の3番目のステップでエラーが発生します:HTTP/1.1 401 Unauthorized
ここに私が得るステップとエラーがあります。次のようにメソスは `HTTP/1.1 401 Unauthorized`エラーで失敗します
UbuntuのVM上のmesosマスターを開始します
GLOG_v=1 ./bin/mesos-agent.sh --master=127.0.0.1:5050 --work_dir=/valib/mesos --isolation=docker/runtime,filesystem/linux --image_providers=docker --executor_environment_variables="{}" --docker_config=file:///home/user/.docker/config.json
:
は同じマシン上で次のコマンドを実行してmesosスレーブを開始
次に、次のようにしてmesos実行プログラムを実行します。
src/mesos-execute --master=127.0.0.1:5050 --name=test --docker_image=library/redis --shell=false
./bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/tmp/mesos
ステップ3次のエラーで終了:
I0109 10:51:03.744791 16304 scheduler.cpp:184] Version: 1.2.0
I0109 10:51:03.746084 16313 scheduler.cpp:470] New master detected at [email protected]:5050
Subscribed with ID f8318398-ea94-49bf-ba39-a3de8d4b93f2-0000
Submitted task 'test' to agent 'f8318398-ea94-49bf-ba39-a3de8d4b93f2-S0'
Received status update TASK_FAILED for task 'test'
message: 'Failed to launch container: Failed to decode HTTP responses: No response decoded
HTTP/1.0 200 Connection established
HTTP/1.1 401 Unauthorized
Content-Type: application/json; charset=utf-8
Docker-Distribution-Api-Version: registry/2.0
Www-Authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io",scope="repository:library/redis:pull"
Date: Mon, 09 Jan 2017 15:56:58 GMT
Content-Length: 145
Strict-Transport-Security: max-age=31536000
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Name":"library/redis","Action":"pull"}]}]}
'
source: SOURCE_AGENT
reason: REASON_CONTAINER_LAUNCH_FAILED