$ docker run --restart=no busybox /bin/sh -c 'date; exit 1'
Wed Sep 17 08:13:15 UTC 2014
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
) |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"testing" | |
) | |
func Test_chdir(t *testing.T) { |
import "strings" | |
type StringFlag []string | |
func (s *StringFlag) String() string { | |
return strings.Join(*s, ",") | |
} | |
func (s *StringFlag) Set(value string) error { |
type StringFlag []string | |
func (s *StringFlag) String() string { | |
return strings.Join(*s, ",") | |
} | |
func (s *StringFlag) Set(value string) error { | |
*s = append(*s, value) | |
return nil | |
} |
package include1 | |
import ( | |
"fmt" | |
"runtime" | |
) | |
func hello() string { | |
return fmt.Sprintf("Hello from %s", runtime.GOOS) | |
} |
FROM buildpack-deps | |
RUN git clone https://github.com/tatsuhiro-t/nghttp2 \ | |
&& cd nghttp2 \ | |
&& autoreconf -i \ | |
&& automake \ | |
&& autoconf \ | |
&& ./configure \ | |
&& make |
That's okay. Let's have an original repo at for example github.com/alice/bar. Fork it, on github, to your (say you're user bob at github), ie. to github.com/bob/bar. Then:
$ cd $GOPATH/src/github.com/alice
$ git clone https://github.com/bob/bar.git
$ cd bar
FROM ubuntu:12.04 | |
RUN apt-get update | |
RUN apt-get install -y apache2 | |
ENV APACHE_RUN_USER www-data | |
ENV APACHE_RUN_GROUP www-data | |
ENV APACHE_LOG_DIR /var/log/apache2 | |
RUN echo 'Hello, docker' > /var/www/index.html |