Я пытаюсь создать Java API для docker, клонировав его из репозитория git, а затем построение с использованием maven следующим образом:
mvn clean install -DskipTests=false -Ddocker.io.username=username -Ddocker.io.password=password [email protected]
Однако тест сборки завершается неудачно, что приводит к следующему сообщению об ошибке:
Results :
Failed tests:
testRunShlex(com.github.dockerjava.client.DockerClientTest): busybox is an unrecognized image. Please pull the image first.
testAuth(com.github.dockerjava.client.command.AuthCmdTest): com.sun.jersey.api.client.UniformInterfaceException: Client response status: 404
testAuthInvalid(com.github.dockerjava.client.command.AuthCmdTest): expected:<401> but was:<404>
testAddAndCopySubstitution(com.github.dockerjava.client.command.BuildImageCmdTest):
testDockerBuilderAddFileInSubfolder(com.github.dockerjava.client.command.BuildImageCmdTest):
testDockerBuilderAddFolder(com.github.dockerjava.client.command.BuildImageCmdTest):
testDockerBuilderAddUrl(com.github.dockerjava.client.command.BuildImageCmdTest):
testNetCatDockerfileBuilder(com.github.dockerjava.client.command.BuildImageCmdTest):
testNginxDockerfileBuilder(com.github.dockerjava.client.command.BuildImageCmdTest):
commit(com.github.dockerjava.client.command.CommitCmdTest): busybox is an unrecognized image. Please pull the image first.
testDiff(com.github.dockerjava.client.command.ContainerDiffCmdTest): busybox is an unrecognized image. Please pull the image first.
copyFromContainer(com.github.dockerjava.client.command.CopyFileFromContainerCmdTest): busybox is an unrecognized image. Please pull the image first.
createContainerWithEnv(com.github.dockerjava.client.command.CreateContainerCmdTest): busybox is an unrecognized image. Please pull the image first.
createContainerWithHostname(com.github.dockerjava.client.command.CreateContainerCmdTest): busybox is an unrecognized image. Please pull the image first.
createContainerWithVolume(com.github.dockerjava.client.command.CreateContainerCmdTest): busybox is an unrecognized image. Please pull the image first.
info(com.github.dockerjava.client.command.InfoCmdTest): busybox is an unrecognized image. Please pull the image first.
testKillContainer(com.github.dockerjava.client.command.KillContainerCmdTest): busybox is an unrecognized image. Please pull the image first.
testListContainers(com.github.dockerjava.client.command.ListContainersCmdTest): Client response status: 404
listImages(com.github.dockerjava.client.command.ListImagesCmdTest)
logContainer(com.github.dockerjava.client.command.LogContainerCmdTest): busybox is an unrecognized image. Please pull the image first.
testPullImage(com.github.dockerjava.client.command.PullImageCmdTest): com.sun.jersey.api.client.UniformInterfaceException: Client response status: 404
testNotExistentImage(com.github.dockerjava.client.command.PushImageCmdTest):
testPushLatest(com.github.dockerjava.client.command.PushImageCmdTest): busybox is an unrecognized image. Please pull the image first.
removeContainer(com.github.dockerjava.client.command.RemoveContainerCmdTest): busybox is an unrecognized image. Please pull the image first.
testRemoveImage(com.github.dockerjava.client.command.RemoveImageCmdTest): busybox is an unrecognized image. Please pull the image first.
restartContainer(com.github.dockerjava.client.command.RestartContainerCmdTest): busybox is an unrecognized image. Please pull the image first.
searchImages(com.github.dockerjava.client.command.SearchImagesCmdTest): com.sun.jersey.api.client.UniformInterfaceException: Client response status: 404
startContainer(com.github.dockerjava.client.command.StartContainerCmdTest): busybox is an unrecognized image. Please pull the image first.
startContainerWithLinking(com.github.dockerjava.client.command.StartContainerCmdTest): busybox is an unrecognized image. Please pull the image first.
startContainerWithPortBindings(com.github.dockerjava.client.command.StartContainerCmdTest): busybox is an unrecognized image. Please pull the image first.
startContainerWithVolumes(com.github.dockerjava.client.command.StartContainerCmdTest): busybox is an unrecognized image. Please pull the image first.
testStopContainer(com.github.dockerjava.client.command.StopContainerCmdTest): busybox is an unrecognized image. Please pull the image first.
testTagImage(com.github.dockerjava.client.command.TagImageCmdTest):
version(com.github.dockerjava.client.command.VersionCmdTest): com.sun.jersey.api.client.UniformInterfaceException: Client response status: 404
testWaitContainer(com.github.dockerjava.client.command.WaitContainerCmdTest): busybox is an unrecognized image. Please pull the image first.
Tests run: 35, Failures: 35, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Вставил полный вывод здесь.
Я попытался вытащить образ busybox из концентратора докеров, используя:
sudo docker pull busybox
и это приводит к следующему сообщению:
Pulling repository busybox
fd5373b3d938: Download complete
d200959a3e91: Download complete
37fca75d01ff: Download complete
a9eb17255234: Download complete
511136ea3c5a: Download complete
42eed7f1bf2a: Download complete
120e218dd395: Download complete
f06b02872d52: Download complete
c120b7cab0b0: Download complete
1f5049b3536e: Download complete
который, как я предполагаю, успешно загружает образ busybox. Однако попытка перестроить Java API приводит к тому же сообщению об ошибке.
Как я могу решить эту проблему и успешно создать Java API?
Характеристики системы:
Хост-машина: Ubuntu 14.04 Trusty Tahr LTS
Вывод sudo docker version
:
Client version: 0.9.1
Go version (client): go1.2.1
Git commit (client): 3600720
Server version: 0.9.1
Git commit (server): 3600720
Go version (server): go1.2.1
Last stable version: 1.1.2, please update docker