Skip to content

Instantly share code, notes, and snippets.

@ajeetraina
Last active April 1, 2021 17:23
Show Gist options
  • Save ajeetraina/1618c2ddbe94a8fdff6fb8cba785e4e4 to your computer and use it in GitHub Desktop.
Save ajeetraina/1618c2ddbe94a8fdff6fb8cba785e4e4 to your computer and use it in GitHub Desktop.
Getting Started with LinuxKit on MacOS
LinuxKit for Docker for Mac:
***Cloning LinuxKit Repository:***
Ajeets-MacBook-Air:~ ajeetraina$ sudo git clone https://github.com/linuxkit/linuxkit
Cloning into 'linuxkit'...
remote: Counting objects: 20097, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 20097 (delta 1), reused 0 (delta 0), pack-reused 20082
Receiving objects: 100% (20097/20097), 15.76 MiB | 441.00 KiB/s, done.
Resolving deltas: 100% (12066/12066), done.
Ajeets-MacBook-Air:~ ajeetraina$
Run make command:
Ajeets-MacBook-Air:linuxkit ajeetraina$ sudo make
mkdir -p bin
docker run --rm --log-driver=none -e GOOS=darwin -e GOARCH=amd64 linuxkit/go-compile:5bf17af781df44f07906099402680b9a661f999b@sha256:0bf523bcebb96ccc525f983a118f1fd8cb5e17dbf90e83044ca71bb983000e70 --clone-path github.com/moby/tool --clone https://github.com/moby/tool.git --package github.com/moby/tool/cmd/moby --ldflags "-X main.GitCommit=f252e855d3ef246808830a836b9c4f12b8e6ebae -X main.Version="0.0" " -o bin/moby > tmp_moby_bin.tar
Unable to find image 'linuxkit/go-compile@sha256:0bf523bcebb96ccc525f983a118f1fd8cb5e17dbf90e83044ca71bb983000e70' locally
sha256:0bf523bcebb96ccc525f983a118f1fd8cb5e17dbf90e83044ca71bb983000e70: Pulling from linuxkit/go-compile
627beaf3eaaf: Already exists
98e502457679: Pulling fs layer
ecae82f11762: Pulling fs layer
cc422136b77c: Pulling fs layer
cc422136b77c: Download complete
Digest: sha256:0bf523bcebb96ccc525f983a118f1fd8cb5e17dbf90e83044ca71bb983000e70
Status: Downloaded newer image for linuxkit/go-compile@sha256:0bf523bcebb96ccc525f983a118f1fd8cb5e17dbf90e83044ca71bb983000e70
Cloning into '.'...
gofmt...
govet...
golint...
ineffassign...
go build...
tar xf tmp_moby_bin.tar > bin/moby
rm tmp_moby_bin.tar
touch bin/moby
tar cf - vendor -C src/cmd/linuxkit . | docker run --rm --net=none --log-driver=none -i -e GOOS=darwin -e GOARCH=amd64 linuxkit/go-compile:5bf17af781df44f07906099402680b9a661f999b@sha256:0bf523bcebb96ccc525f983a118f1fd8cb5e17dbf90e83044ca71bb983000e70 --package github.com/linuxkit/linuxkit --ldflags "-X main.GitCommit=f252e855d3ef246808830a836b9c4f12b8e6ebae -X main.Version="0.0" " -o bin/linuxkit > tmp_linuxkit_bin.tar
gofmt...
govet...
golint...
ineffassign...
go build...
tar xf tmp_linuxkit_bin.tar > bin/linuxkit
rm tmp_linuxkit_bin.tar
touch bin/linuxkit
The above command builds Moby and Linuxkit.
Ajeets-MacBook-Air:linuxkit ajeetraina$ cd bin/
Ajeets-MacBook-Air:bin ajeetraina$ ls
linuxkit moby
Ajeets-MacBook-Air:bin ajeetraina$ cd ..
Ajeets-MacBook-Air:linuxkit ajeetraina$ sudo cp bin/* /usr/local/bin/
Password:
Ajeets-MacBook-Air:linuxkit ajeetraina$
Ajeets-MacBook-Air:linuxkit ajeetraina$ vi linuxkit.yml
Ajeets-MacBook-Air:linuxkit ajeetraina$ cd examples/
Ajeets-MacBook-Air:examples ajeetraina$ ls
docker.yml minimal.yml packet.yml sshd.yml
gcp.yml node_exporter.yml redis-os.yml vmware.yml
Ajeets-MacBook-Air:examples ajeetraina$ vi docker.yml
Ajeets-MacBook-Air:examples ajeetraina$ sudo moby build docker.yml
Extract kernel image: linuxkit/kernel:4.9.x
Add init containers:
Process init image: linuxkit/init:63eed9ca7a09d2ce4c0c5e7238ac005fa44f564b
Process init image: linuxkit/runc:b0fb122e10dbb7e4e45115177a61a3f8d68c19a9
Process init image: linuxkit/containerd:18eaf72f3f4f9a9f29ca1951f66df701f873060b
Process init image: linuxkit/ca-certificates:eabc5a6e59f05aa91529d80e9a595b85b046f935
Add onboot containers:
Create OCI config for linuxkit/sysctl:1f5ec5d5e6f7a7a1b3d2ff9dd9e36fd6fb14756a
Create OCI config for linuxkit/sysfs:6c1d06f28ddd9681799d3950cddf044b930b221c
Create OCI config for linuxkit/binfmt:8881283ac627be1542811bd25c85e7782aebc692
Create OCI config for linuxkit/format:53748000acf515549d398e6ae68545c26c0f3a2e
Create OCI config for linuxkit/mount:d2669e7c8ddda99fa0618a414d44261eba6e299a
Add service containers:
Create OCI config for linuxkit/rngd:c42fd499690b2cb6e4e6cb99e41dfafca1cf5b14
Create OCI config for linuxkit/dhcpcd:57a8ef29d3a910645b2b24c124f9ce9ef53ce703
Create OCI config for linuxkit/openntpd:a570316d7fc49ca1daa29bd945499f4963d227af
Create OCI config for linuxkit/docker-ce:741bf21513328f674e0cdcaa55492b0b75974e08
Add files:
etc/docker/daemon.json
Create outputs:
docker-bzImage docker-initrd.img docker-cmdline
Ajeets-MacBook-Air:examples ajeetraina$ sudo linuxkit run docker
virtio-net-vpnkit: initialising, opts="path=/Users/ajeetraina/Library/Containers/com.docker.docker/Data/s50"
virtio-net-vpnkit: magic=VMN3T version=1 commit=0123456789012345678901234567890123456789
Connection established with MAC=c0:ff:ee:c0:ff:ee and MTU 1500
early console in extract_kernel
input_data: 0x0000000001f2c3b4
input_len: 0x000000000067b5ac
output: 0x0000000001000000
output_len: 0x0000000001595288
kernel_total_size: 0x000000000118a000
booted via startup_32()
Physical KASLR using RDRAND RDTSC...
Virtual KASLR using RDRAND RDTSC...
Decompressing Linux... Parsing ELF... Performing relocations... done.
Booting the kernel.
[ 0.000000] Linux version 4.9.22-moby (root@84baa8e89c00) (gcc version 6.2.1 20160822 (Alpine 6.2.1) ) #1 SMP Fri Apr 14 12:32:33 UTC 2017
[ 0.000000] Command line: earlyprintk=serial console=ttyS0 console=tty0 page_poison=1
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[ 0.000000] x86/fpu: Using 'eager' FPU context switches.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003fffffff] usable
[ 0.000000] bootconsole [earlyser0] enabled
[ 0.000000] ERROR: earlyprintk= earlyser already used
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.6 present.
[ 0.000000] e820: last_pfn = 0x40000 max_arch_pfn = 0x400000000
[ 0.000000] MTRR: Disabled
[ 0.000000] x86/PAT: MTRRs disabled, skipping PAT initialization too.
[ 0.000000] x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC
[ 0.000000] CPU MTRRs all blank - virtualized system.
Memory KASLR using RDRAND RDTSC...
[ 0.000000] found SMP MP-table at [mem 0x000f0000-0x000f000f] mapped at [ffff8b66800f0000]
[ 0.000000] Using GB pages for direct mapping
[ 0.000000] RAMDISK: [mem 0x3b913000-0x3fffffff]
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000000F2400 000024 (v02 BHYVE )
[ 0.000000] ACPI: XSDT 0x00000000000F2480 000044 (v01 BHYVE BVXSDT 00000001 INTL 20140828)
[ 0.000000] ACPI: APIC 0x00000000000F2500 00005A (v01 BHYVE BVMADT 00000001 INTL 20140828)
[ 0.000000] ACPI: FACP 0x00000000000F2A00 00010C (v05 BHYVE BVFACP 00000001 INTL 20140828)
[ 0.000000] ACPI: DSDT 0x00000000000F2C00 000A2D (v02 BHYVE BVDSDT 00000001 INTL 20140828)
[ 0.000000] ACPI: FACS 0x00000000000F2BC0 000040
[ 0.000000] ACPI: FACS 0x00000000000F2BC0 000040
[ 0.000000] ACPI: HPET 0x00000000000F2B40 000038 (v01 BHYVE BVHPET 00000001 INTL 20140828)
[ 0.000000] ACPI: MCFG 0x00000000000F2B80 00003C (v01 BHYVE BVMCFG 00000001 INTL 20140828)
[ 0.000000] Setting APIC routing to physical flat.
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.000000] DMA32 [mem 0x0000000001000000-0x000000003fffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff]
[ 0.000000] node 0: [mem 0x0000000000100000-0x000000003fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000003fffffff]
[ 0.000000] ACPI: PM-Timer IO Port: 0x408
[ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
[ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] ACPI: HPET id: 0x80860701 base: 0xfed00000
[ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] e820: [mem 0x40000000-0xffffffff] available for PCI devices
[ 0.000000] Booting paravirtualized kernel on bare hardware
[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128 nr_cpu_ids:1 nr_node_ids:1
[ 0.000000] percpu: Embedded 35 pages/cpu @ffff8b66bb600000 s105176 r8192 d29992 u2097152
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 257929
[ 0.000000] Kernel command line: earlyprintk=serial console=ttyS0 console=tty0 page_poison=1
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.000000] Memory: 939524K/1048184K available (8678K kernel code, 1418K rwdata, 2912K rodata, 1396K init, 600K bss, 108660K reserved, 0K cma-reserved)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=1
[ 0.000000] NR_IRQS:8448 nr_irqs:256 16
[ 0.000000] Console: colour dummy device 80x25
[ 0.000000] console [tty0] enabled
[ 0.000000] bootconsole [earlyser0] disabled
[ 0.000000] Linux version 4.9.22-moby (root@84baa8e89c00) (gcc version 6.2.1 20160822 (Alpine 6.2.1) ) #1 SMP Fri Apr 14 12:32:33 UTC 2017
[ 0.000000] Command line: earlyprintk=serial console=ttyS0 console=tty0 page_poison=1
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[ 0.000000] x86/fpu: Using 'eager' FPU context switches.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003fffffff] usable
[ 0.000000] bootconsole [earlyser0] enabled
[ 0.000000] ERROR: earlyprintk= earlyser already used
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.6 present.
[ 0.000000] e820: last_pfn = 0x40000 max_arch_pfn = 0x400000000
[ 0.000000] MTRR: Disabled
[ 0.000000] x86/PAT: MTRRs disabled, skipping PAT initialization too.
[ 0.000000] x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC
[ 0.000000] CPU MTRRs all blank - virtualized system.
[ 0.000000] found SMP MP-table at [mem 0x000f0000-0x000f000f] mapped at [ffff8b66800f0000]
[ 0.000000] Using GB pages for direct mapping
[ 0.000000] RAMDISK: [mem 0x3b913000-0x3fffffff]
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000000F2400 000024 (v02 BHYVE )
[ 0.000000] ACPI: XSDT 0x00000000000F2480 000044 (v01 BHYVE BVXSDT 00000001 INTL 20140828)
[ 0.000000] ACPI: APIC 0x00000000000F2500 00005A (v01 BHYVE BVMADT 00000001 INTL 20140828)
[ 0.000000] ACPI: FACP 0x00000000000F2A00 00010C (v05 BHYVE BVFACP 00000001 INTL 20140828)
[ 0.000000] ACPI: DSDT 0x00000000000F2C00 000A2D (v02 BHYVE BVDSDT 00000001 INTL 20140828)
[ 0.000000] ACPI: FACS 0x00000000000F2BC0 000040
[ 0.000000] ACPI: FACS 0x00000000000F2BC0 000040
[ 0.000000] ACPI: HPET 0x00000000000F2B40 000038 (v01 BHYVE BVHPET 00000001 INTL 20140828)
[ 0.000000] ACPI: MCFG 0x00000000000F2B80 00003C (v01 BHYVE BVMCFG 00000001 INTL 20140828)
[ 0.000000] Setting APIC routing to physical flat.
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.000000] DMA32 [mem 0x0000000001000000-0x000000003fffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff]
[ 0.000000] node 0: [mem 0x0000000000100000-0x000000003fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000003fffffff]
[ 0.000000] ACPI: PM-Timer IO Port: 0x408
[ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
[ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] ACPI: HPET id: 0x80860701 base: 0xfed00000
[ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] e820: [mem 0x40000000-0xffffffff] available for PCI devices
[ 0.000000] Booting paravirtualized kernel on bare hardware
[ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128 nr_cpu_ids:1 nr_node_ids:1
[ 0.000000] percpu: Embedded 35 pages/cpu @ffff8b66bb600000 s105176 r8192 d29992 u2097152
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 257929
[ 0.000000] Kernel command line: earlyprintk=serial console=ttyS0 console=tty0 page_poison=1
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.000000] Memory: 939524K/1048184K available (8678K kernel code, 1418K rwdata, 2912K rodata, 1396K init, 600K bss, 108660K reserved, 0K cma-reserved)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=1
[ 0.000000] NR_IRQS:8448 nr_irqs:256 16
[ 0.000000] Console: colour dummy device 80x25
[ 0.000000] console [tty0] enabled
[ 0.000000] bootconsole [earlyser0] disabled
[ 0.000000] console [ttyS0] enabled
[ 0.000000] allocated 2097152 bytes of page_ext
[ 0.000000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126044627 ns
[ 0.000000] tsc: Unable to calibrate against PIT
[ 0.000000] tsc: using PMTIMER reference calibration
[ 0.000000] tsc: Detected 1598.772 MHz processor
[ 0.000069] Calibrating delay loop (skipped), value calculated using timer frequency.. 3197.54 BogoMIPS (lpj=15987720)
[ 0.001327] pid_max: default: 32768 minimum: 301
[ 0.001962] ACPI: Core revision 20160831
[ 0.002907] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 0.003792] Security Framework initialized
[ 0.004280] Yama: becoming mindful.
[ 0.004797] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.005582] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.007060] CPU: Physical Processor ID: 0
[ 0.007598] Last level iTLB entries: 4KB 64, 2MB 8, 4MB 8
[ 0.008262] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4
[ 0.036912] Freeing SMP alternatives memory: 24K (ffffffffb50c1000 - ffffffffb50c7000)
[ 0.044696] ftrace: allocating 38379 entries in 150 pages
[ 0.161613] smpboot: Max logical packages: 1
[ 0.163482] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.380025] smpboot: CPU0: Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz (family: 0x6, model: 0x3d, stepping: 0x4)
[ 0.381219] Performance Events: unsupported p6 CPU model 61 no PMU driver, software events only.
[ 0.382960] NMI watchdog: disabled (cpu0): hardware events not enabled
[ 0.383693] NMI watchdog: Shutting down hard lockup detector on all cpus
[ 0.384540] x86: Booted up 1 node, 1 CPUs
[ 0.385048] smpboot: Total of 1 processors activated (3197.54 BogoMIPS)
[ 0.386247] devtmpfs: initialized
[ 0.386733] x86/mm: Memory block size: 128MB
[ 0.391292] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.392427] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.393482] NET: Registered protocol family 16
[ 0.394276] cpuidle: using governor ladder
[ 0.394778] cpuidle: using governor menu
[ 0.395352] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
[ 0.396210] ACPI: bus type PCI registered
[ 0.396845] PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xe0000000-0xefffffff] (base 0xe0000000)
[ 0.397911] PCI: not using MMCONFIG
[ 0.398366] PCI: Using configuration type 1 for base access
[ 0.400921] HugeTLB registered 1 GB page size, pre-allocated 0 pages
[ 0.401664] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.403050] ACPI: Added _OSI(Module Device)
[ 0.403447] ACPI: Added _OSI(Processor Device)
[ 0.403974] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.404558] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.405717] ACPI: Interpreter enabled
[ 0.406155] ACPI: (supports S0 S5)
[ 0.406554] ACPI: Using IOAPIC for interrupt routing
[ 0.407206] PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xe0000000-0xefffffff] (base 0xe0000000)
[ 0.408535] PCI: MMCONFIG at [mem 0xe0000000-0xefffffff] reserved in ACPI motherboard resources
[ 0.409553] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.411673] ACPI: PCI Root Bridge [PC00] (domain 0000 [bus 00])
[ 0.412359] acpi PNP0A03:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
[ 0.413349] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
[ 0.414070] acpi PNP0A03:00: host bridge window [mem 0x00000000-0xd0000fffff window] ([0x8000000000-0xd0000fffff] ignored, not CPU addressable)
[ 0.415067] acpi PNP0A03:00: host bridge window expanded to [mem 0x00000000-0x7fffffffff window]; [mem 0x00000000-0x7fffffffff window] ignored
[ 0.416083] PCI host bridge to bus 0000:00
[ 0.416397] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[ 0.416899] pci_bus 0000:00: root bus resource [io 0x0d00-0x1fff window]
[ 0.417400] pci_bus 0000:00: root bus resource [io 0x2000-0x205f window]
[ 0.417901] pci_bus 0000:00: root bus resource [mem 0x00000000-0x7fffffffff window]
[ 0.418470] pci_bus 0000:00: root bus resource [bus 00]
[ 0.421949] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
[ 0.423202] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 *6 7 9 10 11 12 14 15)
[ 0.424484] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[ 0.425979] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[ 0.427833] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[ 0.430028] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[ 0.431611] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[ 0.433079] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[ 0.434663] SCSI subsystem initialized
[ 0.435279] pps_core: LinuxPPS API ver. 1 registered
[ 0.435880] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.436987] PTP clock support registered
[ 0.437524] wmi: Mapper loaded
[ 0.437975] PCI: Using ACPI for IRQ routing
[ 0.485127] NetLabel: Initializing
[ 0.485470] NetLabel: domain hash size = 128
[ 0.485994] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.486647] NetLabel: unlabeled traffic allowed by default
[ 0.487497] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0
[ 0.488402] hpet0: 8 comparators, 32-bit 10.000000 MHz counter
[ 0.492120] clocksource: Switched to clocksource hpet
[ 0.507278] FS-Cache: Loaded
[ 0.507634] CacheFiles: Loaded
[ 0.508068] pnp: PnP ACPI init
[ 0.508691] system 00:00: [io 0x0220-0x0223] has been reserved
[ 0.509371] system 00:00: [io 0x0224-0x0227] has been reserved
[ 0.510083] system 00:00: [io 0x04d0-0x04d1] has been reserved
[ 0.510683] system 00:00: [io 0x0400-0x0407] has been reserved
[ 0.511417] system 00:00: [mem 0xe0000000-0xefffffff] has been reserved
[ 0.512371] pnp: PnP ACPI: found 4 devices
[ 0.518742] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[ 0.519459] pci 0000:00:01.0: BAR 6: assigned [mem 0x40000000-0x400007ff pref]
[ 0.520024] pci 0000:00:0a.0: BAR 6: assigned [mem 0x40000800-0x40000fff pref]
[ 0.520578] pci 0000:00:1f.0: BAR 6: assigned [mem 0x40001000-0x400017ff pref]
[ 0.521207] NET: Registered protocol family 2
[ 0.521774] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.522362] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[ 0.523008] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.523624] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.524078] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.524679] NET: Registered protocol family 1
[ 0.525247] RPC: Registered named UNIX socket transport module.
[ 0.525693] RPC: Registered udp transport module.
[ 0.526044] RPC: Registered tcp transport module.
[ 0.526394] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.527329] pci 0000:00:1f.0: Activating ISA DMA hang workarounds
[ 0.528305] Unpacking initramfs...
[ 1.828640] Freeing initrd memory: 72628K (ffff8b66bb913000 - ffff8b66c0000000)
rdmsr to register 0x34 on vcpu 0
[ 1.829779] RAPL PMU: API unit is 2^-32 Joules, 4 fixed counters, 163840 ms ovfl timer
[ 1.830727] RAPL PMU: hw unit of domain pp0-core 2^-16 Joules
[ 1.831443] RAPL PMU: hw unit of domain package 2^-16 Joules
[ 1.832150] RAPL PMU: hw unit of domain dram 2^-16 Joules
[ 1.832789] RAPL PMU: hw unit of domain pp1-gpu 2^-16 Joules
[ 1.836506] audit: initializing netlink subsys (disabled)
[ 1.837124] audit: type=2000 audit(1493147578.640:1): initialized
[ 1.838310] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[ 1.839273] FS-Cache: Netfs 'nfs' registered for caching
[ 1.840064] NFS: Registering the id_resolver key type
[ 1.840680] Key type id_resolver registered
[ 1.841225] Key type id_legacy registered
[ 1.841807] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.842597] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 1.843545] FS-Cache: Netfs 'cifs' registered for caching
[ 1.844241] ntfs: driver 2.1.32 [Flags: R/O].
[ 1.844752] fuse init (API version 7.26)
[ 1.845402] 9p: Installing v9fs 9p2000 file system support
[ 1.846044] FS-Cache: Netfs '9p' registered for caching
[ 1.848534] NET: Registered protocol family 38
[ 1.849046] Key type asymmetric registered
[ 1.849538] Asymmetric key parser 'x509' registered
[ 1.850152] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 1.851192] io scheduler noop registered
[ 1.851654] io scheduler deadline registered (default)
[ 1.852342] io scheduler cfq registered
[ 1.852952] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 1.853622] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 1.854491] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 1.855353] hv_vmbus: registering driver hyperv_fb
[ 1.856080] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[ 1.856943] ACPI: Power Button [PWRF]
[ 1.857565] GHES: HEST is not enabled!
[ 1.858181] virtio-pci 0000:00:01.0: virtio_pci: leaving for legacy driver
[ 1.859191] virtio-pci 0000:00:0a.0: can't derive routing for PCI INT A
[ 1.859922] virtio-pci 0000:00:0a.0: PCI INT A: no GSI
[ 1.860615] virtio-pci 0000:00:0a.0: virtio_pci: leaving for legacy driver
[ 1.861553] xenfs: not registering filesystem on non-xen platform
[ 1.862695] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 1.885151] 00:01: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 1.908761] 00:02: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[ 1.910231] Initializing Nozomi driver 2.1d
[ 1.910928] Non-volatile memory driver v1.3
[ 1.912912] Hangcheck: starting hangcheck timer 0.9.1 (tick is 180 seconds, margin is 60 seconds).
[ 1.914633] random: fast init done
[ 1.915036] random: crng init done
[ 1.916785] loop: module loaded
[ 1.918881] nbd: registered device at major 43
[ 1.920507] VMware PVSCSI driver - version 1.0.7.0-k
[ 1.921098] hv_vmbus: registering driver hv_storvsc
[ 1.921896] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[ 1.923135] tun: Universal TUN/TAP device driver, 1.6
[ 1.923742] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 1.924945] ena: Elastic Network Adapter (ENA) v1.0.2
[ 1.925644] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[ 1.926465] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 1.927203] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 1.927940] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.928724] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[ 1.929594] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.930274] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[ 1.931254] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 1.932063] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - version 4.4.0-k
[ 1.932988] ixgbe: Copyright (c) 1999-2016 Intel Corporation.
[ 1.933729] ixgbevf: Intel(R) 10 Gigabit PCI Express Virtual Function Network Driver - version 3.2.2-k
[ 1.934821] ixgbevf: Copyright (c) 2009 - 2015 Intel Corporation.
[ 1.935666] ixgb: Intel(R) PRO/10GbE Network Driver - version 1.0.135-k2-NAPI
[ 1.936553] ixgb: Copyright (c) 1999-2008 Intel Corporation.
[ 1.937315] PPP generic driver version 2.4.2
[ 1.937971] PPP BSD Compression module registered
[ 1.938541] PPP Deflate Compression module registered
[ 1.939209] PPP MPPE Compression module registered
[ 1.939789] NET: Registered protocol family 24
[ 1.940373] PPTP driver version 0.8.5
[ 1.940885] VMware vmxnet3 virtual NIC driver - version 1.4.a.0-k-NAPI
[ 1.941726] hv_vmbus: registering driver hv_netvsc
[ 1.942356] Fusion MPT base driver 3.04.20
[ 1.942851] Copyright (c) 1999-2008 LSI Corporation
[ 1.943464] Fusion MPT SPI Host driver 3.04.20
[ 1.944315] aoe: AoE v85 initialised.
[ 1.944759] i8042: PNP: No PS/2 controller found. Probing ports directly.
[ 2.474458] i8042: Can't read CTR while initializing i8042
[ 2.475201] i8042: probe of i8042 failed with error -5
[ 2.475965] hv_vmbus: registering driver hyperv_keyboard
[ 2.476843] mousedev: PS/2 mouse device common for all mice
[ 2.477638] input: PC Speaker as /devices/platform/pcspkr/input/input1
[ 2.478562] ACPI Error: Could not enable RealTimeClock event (20160831/evxfevnt-212)
[ 2.479563] ACPI Warning: Could not enable fixed event - RealTimeClock (4) (20160831/evxface-654)
[ 2.480985] rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0
[ 2.481814] rtc_cmos 00:03: alarms up to one day, y3k, 114 bytes nvram
[ 2.482628] i2c /dev entries driver
[ 2.483235] hv_utils: Registering HyperV Utility Driver
[ 2.483856] hv_vmbus: registering driver hv_util
[ 2.484417] hv_vmbus: registering driver hv_balloon
[ 2.485030] oprofile: using timer interrupt.
[ 2.485632] GACT probability on
[ 2.486059] Mirror/redirect action on
[ 2.486540] Simple TC action Loaded
[ 2.487161] netem: version 1.3
[ 2.487515] u32 classifier
[ 2.487868] Performance counters on
[ 2.488339] input device check on
[ 2.488782] Actions configured
[ 2.489208] Netfilter messages via NETLINK v0.30.
[ 2.489804] nfnl_acct: registering with nfnetlink.
[ 2.490442] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[ 2.491295] ctnetlink v0.93: registering with nfnetlink.
[ 2.491973] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
[ 2.492712] nf_tables_compat: (c) 2012 Pablo Neira Ayuso <pablo@netfilter.org>
[ 2.493601] xt_time: kernel timezone is -0000
[ 2.494116] ip_set: protocol 6
[ 2.494545] IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP)
[ 2.495362] IPVS: Connection hash table configured (size=4096, memory=64Kbytes)
[ 2.496271] IPVS: Creating netns size=2104 id=0
[ 2.497044] IPVS: ipvs loaded.
[ 2.497400] IPVS: [rr] scheduler registered.
[ 2.497901] IPVS: [wrr] scheduler registered.
[ 2.498411] IPVS: [lc] scheduler registered.
[ 2.498935] IPVS: [wlc] scheduler registered.
[ 2.499494] IPVS: [fo] scheduler registered.
[ 2.500068] IPVS: [ovf] scheduler registered.
[ 2.500648] IPVS: [lblc] scheduler registered.
[ 2.501232] IPVS: [lblcr] scheduler registered.
[ 2.501874] IPVS: [dh] scheduler registered.
[ 2.502376] IPVS: [sh] scheduler registered.
[ 2.502878] IPVS: [sed] scheduler registered.
[ 2.503395] IPVS: [nq] scheduler registered.
[ 2.503943] IPVS: ftp: loaded support on port[0] = 21
[ 2.504678] ipip: IPv4 and MPLS over IPv4 tunneling driver
[ 2.505510] gre: GRE over IPv4 demultiplexor driver
[ 2.506081] ip_gre: GRE over IPv4 tunneling driver
[ 2.506895] IPv4 over IPsec tunneling driver
[ 2.507639] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.508292] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
[ 2.508949] arp_tables: arp_tables: (C) 2002 David S. Miller
[ 2.509552] Initializing XFRM netlink socket
[ 2.510015] NET: Registered protocol family 10
[ 2.510870] mip6: Mobile IPv6
[ 2.511121] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 2.511868] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 2.512523] ip6_gre: GRE over IPv6 tunneling driver
[ 2.512990] NET: Registered protocol family 17
[ 2.513333] NET: Registered protocol family 15
[ 2.513679] Bridge firewalling registered
[ 2.513988] Ebtables v2.0 registered
[ 2.514858] l2tp_core: L2TP core driver, V2.0
[ 2.515332] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[ 2.515925] 8021q: 802.1Q VLAN Support v1.8
[ 2.516475] 9pnet: Installing 9P2000 support
[ 2.517054] Key type dns_resolver registered
[ 2.517590] openvswitch: Open vSwitch switching datapath
[ 2.518324] mpls_gso: MPLS GSO support
[ 2.518954] microcode: sig=0x306d4, pf=0x1, revision=0x0
[ 2.519632] microcode: Microcode Update Driver: v2.01 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
[ 2.520657] AVX2 version of gcm_enc/dec engaged.
[ 2.521134] AES CTR mode by8 optimization enabled
[ 2.522184] registered taskstats version 1
[ 2.524219] Key type big_key registered
[ 2.525484] Key type encrypted registered
[ 2.526184] rtc_cmos 00:03: setting system clock to 2017-04-25 19:12:59 UTC (1493147579)
[ 2.530551] Freeing unused kernel memory: 1396K (ffffffffb4f64000 - ffffffffb50c1000)
[ 2.531628] Write protecting the kernel read-only data: 14336k
[ 2.532764] Freeing unused kernel memory: 1548K (ffff8b668d87d000 - ffff8b668da00000)
[ 2.537085] Freeing unused kernel memory: 1184K (ffff8b668dcd8000 - ffff8b668de00000)
[ 2.913271] tsc: Refined TSC clocksource calibration: 1598.848 MHz
[ 2.913968] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x170be4c29f7, max_idle_ns: 440795257404 ns
Welcome to LinuxKit
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
/ # [ 2.985735] IPVS: Creating netns size=2104 id=1
[ 2.986320] IPVS: ftp: loaded support on port[0] = 21
[ 3.019280] IPVS: Creating netns size=2104 id=2
[ 3.019713] IPVS: ftp: loaded support on port[0] = 21
[ 3.264874] IPVS: Creating netns size=2104 id=3
[ 3.265882] IPVS: ftp: loaded support on port[0] = 21
[ 3.505293] IPVS: Creating netns size=2104 id=4
[ 3.506259] IPVS: ftp: loaded support on port[0] = 21
[ 3.703426] IPVS: Creating netns size=2104 id=5
[ 3.704337] IPVS: ftp: loaded support on port[0] = 21
[ 3.923512] clocksource: Switched to clocksource tsc
[ 4.777332] IPv6: ADDRCONF(NETDEV_UP): docker0: link is not ready
/ #
Checking OS Release:
/ # cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.5.2
PRETTY_NAME="Alpine Linux v3.5"
HOME_URL="http://alpinelinux.org"
BUG_REPORT_URL="http://bugs.alpinelinux.org"
/ #
/ # cat /etc/issue
Welcome to LinuxKit
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
/ #
/ # runc list
ID PID STATUS BUNDLE CREATED OWNER
dhcpcd 625 running /containers/services/dhcpcd 2017-04-25T19:13:00.678726Z root
docker 644 running /containers/services/docker 2017-04-25T19:13:00.6903689Z root
ntpd 665 running /containers/services/ntpd 2017-04-25T19:13:00.7477147Z root
rngd
/ # runc exec -t docker sh
/ # docker version
Client:
Version: 17.04.0-ce
API version: 1.28
Go version: go1.7.5
Git commit: 4845c56
Built: Wed Apr 5 23:33:17 2017
OS/Arch: linux/amd64
Server:
Version: 17.04.0-ce
API version: 1.28 (minimum version 1.12)
Go version: go1.7.5
Git commit: 4845c56
Built: Wed Apr 5 23:33:17 2017
OS/Arch: linux/amd64
Experimental: false
Lets run few containers:
/ # docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-world latest 48b5124b2768 3 months ago 1.84kB
/ # docker run -d -p 9000:9000 -v "/var/run/docker.sock:/var/run/docker.sock" po
rtainer/portainer
Unable to find image 'portainer/portainer:latest' locally
latest: Pulling from portainer/portainer
a3ed95caeb02: Pull complete
802d894958a2: Pull complete
a64eb441970e: Pull complete
Digest: sha256:40bf7e42c9cd4b95ab70b9eca8c9b772e7ef65e78fa094ccb6f745e117b5237c
Status: Downloaded newer image for portainer/portainer:latest
dd10d3dbe914bc21813df434d3475e142cea54ddc937161718726db606a69a19
[ 316.027949] docker0: port 1(vethd84d15b) entered blocking state
[ 316.028612] docker0: port 1(vethd84d15b) entered disabled state
[ 316.029473] device vethd84d15b entered promiscuous mode
[ 316.031343] IPv6: ADDRCONF(NETDEV_UP): vethd84d15b: link is not ready
[ 316.075148] IPVS: Creating netns size=2104 id=7
[ 316.075668] IPVS: ftp: loaded support on port[0] = 21
[ 316.153545] eth0: renamed from veth596c262
[ 316.155053] IPv6: ADDRCONF(NETDEV_CHANGE): vethd84d15b: link becomes ready
[ 316.156861] docker0: port 1(vethd84d15b) entered blocking state
[ 316.158231] docker0: port 1(vethd84d15b) entered forwarding state
/ #
/ # docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dd10d3dbe914 portainer/portainer "/portainer" About a minute ago Up About a minute 0.0.0.0:9000->9000/tcp epic_easley
/ #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment