Skip to content

jlchn/go-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Some Docker Basics

get container PID from host point of view

docker inspect -f '{{.State.Pid}}' b7b9bbce4a8e
> 7053

get PID inside of container namespace

more /proc/7053/status | grep "NSpid" # 7053 is the container PID from host point of view
> NSpid:	7053	1                 # inside of container namepsaces. 7053 mapped to 1

Namespaces

get all namepsaces on the host

https://github.com/Intika-Linux-Namespace/Namespace-Lister/blob/master/listns.py

UTS Namespace

UTS Namespace is used to isolate node name and domain name

Developmment

install GoDep

sudo apt-get install go-dep
dep init

About

Custom Docker Written in Go for Learning Purpose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages