This repository was archived by the owner on Sep 12, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ # TLDR
2+
3+ ## Basics
4+
5+ ` docker info `
6+
7+ ` docker version `
8+
9+ Have docker daemon started in debug mode: ` docker -d -D `
10+
11+
12+ ## Your private registry
13+
14+ Copy your launch command (eg: ` docker run registry... ` ).
15+
16+ Copy your configuration file, if you are not using the default one.
17+
18+ Restart your private registry in debug mode (add ` -e DEBUG=true ` to your docker launch command).
19+
20+ ` curl -svn --trace-time https://MYREGISTRY/_ping `
21+
22+ ## Testing the speed of the official registry
23+
24+ ```
25+ VICTIM=tianon/speedtest
26+ LAYER=71e62a8beff35bb692f64fb2e04bf1d6d19f5262500ad05dd95b1a95dcb5599d
27+ SIGNATURE="`curl -iv -o/dev/null -H "X-Docker-Token: true" "https://registry.hub.docker.com/v1/repositories/$VICTIM/images" 2>&1 | awk '{print $3}' | grep signature | tr -d "\r\n"`"
28+ CF_URL="`curl -iv -o/dev/null -H "Authorization: Token $SIGNATURE" https://registry-1.docker.io/v1/images/$LAYER/layer 2>&1 | awk '{print $3}' | grep cloudfront | sed -e 's/\r\n//g' | tr -d "\r\n"`"
29+ echo "*************"
30+ echo "CF delivery:"
31+ echo "*************"
32+ time curl -svnoo --trace-time "${CF_URL}"
33+
34+ echo "*************"
35+ echo "Resolving:"
36+ echo "*************"
37+ dig resolver-identity.cloudfront.net
38+
39+ echo "*************"
40+ echo "RAW S3:"
41+ echo "*************"
42+ time curl -svnoo --trace-time http://kamilc-us-west-1.s3.amazonaws.com/test200m
43+
44+ echo "*************"
45+ echo "RAW HTTP:"
46+ echo "*************"
47+ time curl -svnoo --trace-time http://mirrors.sonic.net/centos/7/isos/x86_64/CentOS-7.0-1406-x86_64-NetInstall.iso
48+
49+ ```
Original file line number Diff line number Diff line change @@ -24,3 +24,5 @@ Please insert the following into your bug report:
2424Please, no "this happens to me as well" comments on tickets - not helpful.
2525
2626On the other hand, if you do have any useful information to provide, by all means do.
27+
28+ Also see [ debugging] ( DEBUGGING.md ) for more indepth information about troubleshooting and performance testing.
You can’t perform that action at this time.
0 commit comments