zeromake / docker-debug Goto Github PK
View Code? Open in Web Editor NEWuse new container attach on already container go on debug
License: MIT License
use new container attach on already container go on debug
License: MIT License
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 ~]#
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
使用ps aux可以看到相关程序,但是使用 jstack 提示
Unable to open socket file: target process not responding or HotSpot VM not loaded
debug 进去之后文件系统跟容器不一致
更新过 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 非常好用
在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
作者百忙中可否抽出些时间添加支持?
brew install docker-debug
==> Downloading https://github.com/zeromake/docker-debug/releases/download/v0.7.4/docker-debug-darwin-amd64
Error: docker-debug: SHA256 mismatch
Expected: d515939ccdde206461bdde33256367fa738386d85548d748fffbeef608c03828
Actual: 0bb821fac268b1bf30bf6cb217a2bea103f3079ff634a3db1fe62c5dc4b899ef
Error: Error response from daemon: client version 1.40 is too new. Maximum supported API version is 1.39
go build -o docker-debug ./cmd/docker-debug
cmd/docker-debug/main.go:4:2: use of internal package not allowed
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.