GithubHelp home page GithubHelp logo

Comments (6)

calmkart avatar calmkart commented on August 10, 2024
# use primary docker registry, set registry kubernets secret to pull image
# the default registry-secret-name is kubectl-debug-registry-secret, the default namespace is default
# please set the secret data source as {Username: <username>, Password: <password>}
kubectl-debug POD_NAME --image calmkart/netshoot:latest --registry-secret-name <k8s_secret_name> --registry-secret-namespace <namespace>

@a52yth
是否有使用最新的源码进行的编译?
#61 中有添加私有仓库账号密码设置。
推荐编译最新的agent和plugin使用。

from kubectl-debug.

sunnoy avatar sunnoy commented on August 10, 2024

已经按照所示的方式添加,但是仍然登陆,编译的是最新版本

end port-forward...
                   error execute remote, Internal error occurred: error attaching to container: Error response from daemon: pull access denied for xxxxx, repository does not exist or may require 'docker login'

from kubectl-debug.

calmkart avatar calmkart commented on August 10, 2024

@sunnoy 麻烦提供一下执行命令和secret.(密码部分请遮盖)

from kubectl-debug.

cpan42 avatar cpan42 commented on August 10, 2024

from the source code , it looks like the docker pull secret key should exactly equals "authStr". kubectl create secret generic kubect-debug-secret --from-file=./authStr works for me

from kubectl-debug.

sunnoy avatar sunnoy commented on August 10, 2024

@sunnoy 麻烦提供一下执行命令和secret.(密码部分请遮盖)

cat authStr
{Username: admin, Password: xxxxxxx}

kubectl create secret generic kubect-debug-secret --from-file=./authStr

kubectl debug -n default \
        nginx-7bb7cd8db5-jr2kc \
        -a --image xxxxxxx \
        --registry-secret-name kubect-debug-secret \
        --registry-secret-namespace default \
        -c nginx \
        bash

end port-forward...
                   error execute remote, Internal error occurred: error attaching to container: Error response from daemon: pull access denied for xxxxxxxx, repository does not exist or may require 'docker login'
error: Internal error occurred: error attaching to container: Error response from daemon: pull access denied for xxxxxxxx, repository does not exist or may require 'docker login'

from kubectl-debug.

kchenzhi avatar kchenzhi commented on August 10, 2024

有可能是authStr文件中的json内容要用双引号?例如:
{"Username": "admin", "Password": "xxxxxxx"}

我加上双引号后就没问题了,你可以试试

from kubectl-debug.

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.