Skip to content

Instantly share code, notes, and snippets.

View skanehira's full-sized avatar
🦍
I'm Gorilla

skanehira skanehira

🦍
I'm Gorilla
  • 株式会社テックリード
  • Japan
  • 21:05 (UTC +09:00)
  • X @gorilla0513
View GitHub Profile
@skanehira
skanehira / createContainer.go
Last active April 29, 2019 01:58
make a simple container
package main
import (
"os"
"os/exec"
"syscall"
)
func must(err error) {
if err != nil {
@skanehira
skanehira / containerlogs.go
Created March 1, 2019 07:19
Use docker sdk to tail container logs
package main
import (
"context"
"log"
"os"
"github.com/docker/docker/api/types"
"github.com/docker/docker/client"
"github.com/docker/docker/pkg/stdcopy"