This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pushing 75d01c1a488526899c15031b5c93d098680a73d31062662a9a58460f81cc34c9 | |
2013/09/04 21:28:51 Received HTTP code 504 while uploading layer: <html> | |
<head><title>504 Gateway Time-out</title></head> | |
<body bgcolor="white"> | |
<center><h1>504 Gateway Time-out</h1></center> | |
<hr><center>nginx/1.4.2</center> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func PublicMethod() { | |
someFunc("hello") | |
} | |
func someFunc(a String) { | |
} | |
func TestStuff(t *testing.T) { | |
someFunc = func(a String) { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM tianon/dind | |
RUN apt-get update -y && apt-get install --no-install-recommends -y -q \ | |
curl \ | |
ca-certificates \ | |
procps | |
RUN mkdir /nodejs && curl http://nodejs.org/dist/v0.10.30/node-v0.10.30-linux-x64.tar.gz | tar xvzf - -C /nodejs --strip-components=1 | |
ENV PATH /nodejs/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker run -d --name test-port -p 8000:8000 busybox sh -c "while true; do echo 'hello world'; done" | |
for i in {1..100}; do | |
echo "restart $i" | |
docker restart test-port | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dockerfile | |
ENV name value | |
ENV name2 value2 | |
VOLUME /test1 | |
# EOF | |
# normal AST | |
(env name value) | |
(env name2 value2) | |
(volume /test1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /containers/(id)/start HTTP/1.1 | |
Content-Type: application/json | |
{ | |
"RestartPolicy": {"Name": "always"} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// test for https://github.com/docker/docker/issues/3631 | |
func TestRunPipeStdoutSlowStdin(t *testing.T) { | |
defer deleteAllContainers() | |
defer deleteImages("fedora") | |
runCommand(exec.Command(dockerBinary, "pull", "fedora")) | |
runCmd := exec.Command("bash", "-c", | |
fmt.Sprintf(`%s run -i fedora tar -cf - /usr/bin | %s run -i fedora tar -tf -`, | |
dockerBinary, dockerBinary)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 244453b367dd0f005e71f400c698fe29ad070f1b Mon Sep 17 00:00:00 2001 | |
From: "Daniel, Dao Quang Minh" <[email protected]> | |
Date: Wed, 8 Oct 2014 10:27:55 -0400 | |
Subject: [PATCH] pass extra file to child process as status handler | |
instead of using stdout/stderr as the status handler, we pass an extra file to | |
the child process and write `0\n` or `1\nerror message` to it and close it | |
after. This allow the child process to handle stdout/stderr as normal. | |
Docker-DCO-1.1-Signed-off-by: Daniel, Dao Quang Minh <[email protected]> (github: dqminh) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oct 9 07:41:29 action-dev kernel: [48657.051281] type=1400 audit(1412854889.409:135): apparmor="DENIED" operation="signal" profile="docker-default" pid=9733 comm="bash" requested_mask="send" denied_mask="send" signal=term peer="unconfined" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ADD ./composer.json /app/composer.json | |
RUN composer install |