Giter Club home page Giter Club logo

docker-debug's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-debug's Issues

container name should use container id

container name is somewhat hard to find, container id is more straightforward.

[root@online-node-81-111 ~]# docker ps --format '{{.Names}}'|grep fs
k8s_fs_fs-94b9965cc-9w6sq_yunwei_bad78485-671c-11e9-b0a5-369c7c34da16_0
k8s_POD_fs-94b9965cc-9w6sq_yunwei_bad78485-671c-11e9-b0a5-369c7c34da16_0
[root@online-node-81-111 ~]#

expect

docker ps | grep fs
docker-debug container-id command
# docker-debug info
Version:	0.6.0
Platform:	TravisLinux
Commit:		5a777bf
Time:		2019-04-21 06:33:33 +0000

无法调试jvm?

使用ps aux可以看到相关程序,但是使用 jstack 提示

Unable to open socket file: target process not responding or HotSpot VM not loaded

not find container

更新过 mac 的 docker 之后,docker-debug 无法使用。

Error: not find class-runner_db container!

Error: Error response from daemon: can't join IPC of container 655cba204cdc5765b26d6da4747be015b9bbdbf042c9da5a69a26f286d029308: non-shareable IPC (hint: use IpcMode:shareable for the donor container)

$> docker-debug info
Version:        0.6.0
Platform:       TravisLinux
Commit:         5a777bf
Time:           2019-04-21 06:32:50 +0000
$> docker version
Client: Docker Engine - Community
 Version:           19.03.0-rc2
 API version:       1.40
 Go version:        go1.12.5
 Git commit:        f97efcc
 Built:             Wed Jun  5 01:37:53 2019
 OS/Arch:           darwin/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.0-rc2
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.5
  Git commit:       f97efcc
  Built:            Wed Jun  5 01:42:10 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.2.6
  GitCommit:        894b81a4b802e4eb2a91d1ce216b8817763c29fb
 runc:
  Version:          1.0.0-rc8
  GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683
$> uname -a
Darwin XXXdeMacBook-Pro.local 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64

希望能解决,docker-debug 非常好用

尚未支持docker api v1.41 upwards

在Ubuntu环境下载运行,得到如下错误:
~$ ./docker-debug axon bash -l
ERRO[0000] Error: Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40

作者百忙中可否抽出些时间添加支持?

编译失败

go build -o docker-debug ./cmd/docker-debug

cmd/docker-debug/main.go:4:2: use of internal package not allowed

Invalid mount config for type "bind"

I have the following err:

PS> docker-debug-windows-amd64.exe <my_container_name> sh
latest: Pulling from nicolaka/netshoot
e7c96db7181b: Already exists
e8ad7601444c: Pull complete
1c3e3a777e70: Pull complete
916dd651caf3: Pull complete
4375fed2538e: Pull complete
8631605717d0: Pull complete
dd4fb07f87c6: Pull complete
Digest: sha256:8b020dc72d8ef07663e44c449f1294fc47c81a10ef5303dc8c2d9635e8ca22b1
Status: Downloaded newer image for nicolaka/netshoot:latest
Error: Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /var/lib/docker/overlay2/67449055e6fcab9fff5e097d3c69e962ca6897ab563915214a53bc3e2875f587/merged

I am on latest Windows10 using latest docker on desktop (linux mode).

无法调试

ERRO[0005] Error: read unix ->/Users/nothing/.docker/run/docker.sock: i/o timeout

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.