Git Product home page Git Product logo

Comments (5)

phith0n avatar phith0n commented on July 26, 2024

你贴了一行没有任何错误详情的无用信息……

from vulhub.

The0ne66 avatar The0ne66 commented on July 26, 2024

Pulling tomcat (vulhub/tomcat:8.0)...
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 11, in
load_entry_point('docker-compose==1.21.0', 'console_scripts', 'docker-compose')()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 71, in main
command()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 127, in perform_command
handler(command, command_options)
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 1052, in up
to_attach = up(False)
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 1048, in up
silent=options.get('--quiet-pull'),
File "/usr/lib/python3/dist-packages/compose/project.py", line 466, in up
svc.ensure_image_exists(do_build=do_build, silent=silent)
File "/usr/lib/python3/dist-packages/compose/service.py", line 324, in ensure_image_exists
self.pull(silent=silent)
File "/usr/lib/python3/dist-packages/compose/service.py", line 1142, in pull
output = self.client.pull(repo, **kwargs)
File "/usr/lib/python3/dist-packages/docker/api/image.py", line 380, in pull
header = auth.get_config_header(self, registry)
File "/usr/lib/python3/dist-packages/docker/auth.py", line 48, in get_config_header
client._auth_configs, registry, credstore_env=client.credstore_env
File "/usr/lib/python3/dist-packages/docker/auth.py", line 96, in resolve_authconfig
authconfig, registry, store_name, env=credstore_env
File "/usr/lib/python3/dist-packages/docker/auth.py", line 127, in _resolve_authconfig_credstore
store = dockerpycreds.Store(credstore_name, environment=env)
TypeError: init() got an unexpected keyword argument 'environment'

from vulhub.

phith0n avatar phith0n commented on July 26, 2024

看样子好像是docker和docker-compose的接口不一致导致的,可以按照如下模板填写一下错误,看是否是版本原因导致:

填写如下信息

  • Which environment: 哪个环境出现BUG [e.g. python/ssti]
  • Host OS: 操作系统 [e.g. Ubuntu]
  • OS Version: 操作系统版本 [e.g. 18.04]
  • Docker version: Docker 版本 [e.g. Docker version 18.04.0-ce, build 3d479c0]
  • Compose version: Docker-Compose 版本 [e.g. docker-compose version 1.22.0, build f46880f]
  • Describe your bug: 描述你的Bug,什么情况下出现这个bug

一些关键信息:

  • 主机是否在**大陆
  • 是否重试过仍然出现这个错误

注意,issue仅接受vulhub自身的bug,如:

  • 编译时出现bug导致编译失败
  • 运行后,环境无法访问
  • 环境运行后,按照README中的操作,无法复现漏洞
  • README中出现的错误,如错别字、参考链接失效等

不接受:

  • 安装docker或docker-compose时出现的bug
  • 运行docker、docker-compose时出现的bug
  • 拉取/下载vulhub时出现的bug
  • 拉取docker镜像因为网络原因导致拉取失败

附加信息

请贴出完整错误信息,可以是命令行输出、软件报错信息、截图等。

注意,请贴出完整错误信息,不要只粘贴错误的最后一行!

from vulhub.

hundan2020 avatar hundan2020 commented on July 26, 2024

同样发现这个问题 @phith0n

vulhub环境:gitlab/CVE-2016-9086
网络环境:香港服务器

操作日志

git clone https://github.com/vulhub/vulhub/
cd vulhub/
cd gitlab
cd CVE-2016-9086/
docker-compose up 

错误信息

...
Setting up libidn11-dev (1.28-1ubuntu2.2) ...
Setting up libkrb5-dev (1.12+dfsg-2ubuntu5.4) ...
Setting up libldap2-dev:amd64 (2.4.31-1+nmu2ubuntu8.5) ...
Setting up libgpg-error-dev (1.12-0.2ubuntu1) ...
Setting up libgcrypt11-dev (1.5.3-2ubuntu4.6) ...
Setting up zlib1g-dev:amd64 (1:1.2.8.dfsg-1ubuntu1.1) ...
Setting up libtasn1-6-dev (3.4-3ubuntu0.6) ...
Setting up libp11-kit-dev (0.20.2-2ubuntu2) ...
Setting up libgnutls-dev (2.12.23-12ubuntu2.8) ...
Setting up librtmp-dev (2.4+20121230.gitdf6c518-1ubuntu0.1) ...
Setting up libssl-dev:amd64 (1.0.1f-1ubuntu2.27) ...
Setting up libcurl4-openssl-dev:amd64 (7.35.0-1ubuntu2.20) ...
Setting up libgdbm-dev (1.8.3-12build1) ...
Setting up libgmp-dev:amd64 (2:5.1.3+dfsg-1ubuntu1) ...
Setting up libicu-dev:amd64 (52.1-3ubuntu0.8) ...
Setting up libmysqlclient-dev (5.5.62-0ubuntu0.14.04.1) ...
Setting up libtinfo-dev:amd64 (5.9+20140118-1ubuntu1) ...
Setting up libncurses5-dev:amd64 (5.9+20140118-1ubuntu1) ...
Setting up libpq-dev (11.3-1.pgdg14.04+1) ...
Setting up libreadline6-dev:amd64 (6.3-4ubuntu2) ...
Setting up libreadline-dev:amd64 (6.3-4ubuntu2) ...
Setting up libxml2-dev:amd64 (2.9.1+dfsg1-3ubuntu4.13) ...
Setting up libxslt1-dev:amd64 (1.1.28-2ubuntu0.2) ...
Setting up make (3.81-8.2ubuntu3) ...
Setting up patch (2.7.1-4ubuntu2.4) ...
Setting up libffi-dev:amd64 (3.1~rc1+r3.0.13-12ubuntu0.2) ...
Setting up libyaml-dev:amd64 (0.1.4-3ubuntu3.1) ...
Setting up paxctl (0.7-1) ...
Setting up ruby2.3-dev:amd64 (2.3.8-4bbox1~trusty1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.11) ...
file /usr/bin/nodejs got a new PT_PAX_FLAGS program header
Adding user `git' ...
Adding new group `git' (1000) ...
Adding new user `git' (1000) with group `git' ...
Creating home directory `/home/git' ...
Copying files from `/etc/skel' ...
passwd: password expiry information changed.
Downloading gitlab-shell v.3.6.6...
mkdir -p /home/git/.ssh: OK
chmod 700 /home/git/.ssh: OK
Downloading gitlab-workhorse v.0.8.5...
Downloading Go 1.5.3...
2020-03-18 06:57:39 URL:https://storage.googleapis.com/golang/go1.5.3.linux-amd64.tar.gz [80147269/80147269] -> "/etc/docker-gitlab/build/go1.5.3.linux-amd64.tar.gz" [1]
mkdir -p /home/git/gitlab-workhorse/_build/src/gitlab.com/gitlab-org/gitlab-workhorse
tar -cf - --exclude _build --exclude .git . | (cd /home/git/gitlab-workhorse/_build/src/gitlab.com/gitlab-org/gitlab-workhorse && tar -xf -)
touch /home/git/gitlab-workhorse/_build
fatal: not a git repository (or any of the parent directories): .git
go build -ldflags "-X main.Version=-20200318.065742" -o /home/git/gitlab-workhorse/gitlab-workhorse gitlab.com/gitlab-org/gitlab-workhorse
fatal: not a git repository (or any of the parent directories): .git
go build -ldflags "-X main.Version=-20200318.065747" -o /home/git/gitlab-workhorse/gitlab-zip-cat gitlab.com/gitlab-org/gitlab-workhorse/cmd/gitlab-zip-cat
fatal: not a git repository (or any of the parent directories): .git
go build -ldflags "-X main.Version=-20200318.065747" -o /home/git/gitlab-workhorse/gitlab-zip-metadata gitlab.com/gitlab-org/gitlab-workhorse/cmd/gitlab-zip-metadata
mkdir -p /usr/local/bin/
cd /home/git/gitlab-workhorse && install gitlab-workhorse gitlab-zip-cat gitlab-zip-metadata /usr/local/bin/
Cloning gitlab-ce v.8.13.1...
Note: switching to '91f25c2f6e36ebc9a898317b84742f11e6309241'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

[DEPRECATED] The `--deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set deployment 'true'`, and stop using this flag
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set without 'development test aws'`, and stop using this flag
Fetching gem metadata from https://rubygems.org/.......
Could not find gemnasium-gitlab-service-0.2.6 in any of the sources
ERROR: Service 'gitlab' failed to build: The command '/bin/sh -c bash ${GITLAB_BUILD_DIR}/install.sh' returned a non-zero code: 7

docker-compose -v

docker-compose version 1.17.1, build unknown

docker -v

Docker version 19.03.6, build 369ce74a3c

lsb_release -a

Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:        18.04
Codename:       bionic

uname -a

Linux VM-0-6-ubuntu 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

from vulhub.

phith0n avatar phith0n commented on July 26, 2024

Fixed at #237

from vulhub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.