Project: mesos
Issue MESOS-4877: Mesos containerizer can't handle top level docker image like "alpine" (must use "library/alpine")
This can be demonstrated with the {{mesos-execute}} command: # Docker containerizer with image {{alpine}}: success {code} sudo ./build/src/mesos-execute --docker_image=alpine --containerizer=docker --name=just-a-test --command="sleep 1000" --master=localhost:5050 {code} # Mesos containerizer with image {{alpine}}: failure {code} sudo ./build/src/mesos-execute --docker_image=alpine --containerizer=mesos --name=just-a-test --command="sleep 1000" --master=localhost:5050 {code} # Mesos containerizer with image {{library/alpine}}: success {code} sudo ./build/src/mesos-execute --docker_image=library/alpine --containerizer=mesos --name=just-a-test --command="sleep 1000" --master=localhost:5050 {code} In the slave logs: {code} ea-4460-83 9c-838da86af34c-0007' I0306 16:32:41.418269 3403 metadata_manager.cpp:159] Looking for image 'alpine:latest' I0306 16:32:41.418699 3403 registry_puller.cpp:194] Pulling image 'alpine:latest' from 'docker-manifest://registry-1.docker.io:443alpine?latest#https' to '/tmp/mesos-test /store/docker/staging/ka7MlQ' E0306 16:32:43.098131 3400 slave.cpp:3773] Container '4bf9132d-9a57-4baa-a78c-e7164e93ace6' for executor 'just-a-test' of framework 4f055c6f-1bea-4460-839c-838da86af34c-0 007 failed to start: Collect failed: Unexpected HTTP response '401 Unauthorized {code} curl command executed: {code} $ sudo sysdig -A -p "*%evt.time %proc.cmdline" evt.type=execve and proc.name=curl 16:42:53.198998042 curl -s -S -L -D - https://registry-1.docker.io:443/v2/alpine/manifests/latest 16:42:53.784958541 curl -s -S -L -D - https://auth.docker.io/token?service=registry.docker.io&scope=repository:alpine:pull 16:42:54.294192024 curl -s -S -L -D - -H Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsIng1YyI6WyJNSUlDTHpDQ0FkU2dBd0lCQWdJQkFEQUtCZ2dxaGtqT1BRUURBakJHTVVRd1FnWURWUVFERXp0Uk5Gb3pPa2RYTjBrNldGUlFSRHBJVFRSUk9rOVVWRmc2TmtGRlF6cFNUVE5ET2tGU01rTTZU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3ViIjoiIn0.C2wtJq_P-m0buPARhmQjDfh6ztIAhcvgN3tfWIZEClSgXlVQ_sAQXAALNZKwAQL2Chj7NpHX--0GW-aeL_28Aw https://registry-1.docker.io:443/v2/alpine/manifests/latest {code} Also got the same result with {{ubuntu}} docker image.
Story points: 3