title: docker
Docker: Containerized Virtual Machine System for easy deploy
About Docker, meaning in English is transporter on ship. You can image a docker as container.
Docker is a abstracted layer of lxc with aufs(Advanced Union File System).
Under the hard work of docker, and application can be packaged as a container, which can lay on images standarized by docker.
| redis | node | nginx |
| ubuntu image |
| Docker layer |
| lxc AUFS |
| Kernel modules |
Installtion of archlinux
- Using Grub4dos
Put the file grldr on c:\ Drive
Edit the boot.ini file
c:\grldr = "install arch"
- Editing menulist
title install archlinux
root (hd0,0)
kernel (hd0,0)/vmlinuz label=ARCH-201408
initrd (hd0,0)/archiso.img
boot
Booting pre system
Fallback to basic shell
Getting the
isofile to be recognized
The trick is to find the archlinux.iso file and set it the loop device
Then link the loop device to the same label of Grub
mkdir /iso
mount -t ntfs -r /dev/sda1 /iso
modprobe loop
losetup /dev/loop6 /iso/archlnux.iso
ln -s /dev/loop6 /udisk/dev/by-label/ARCH-201408
exit
- Booting real system of
iso
Finnaly we go the live iso running and ready to install everything
Following the normal installtion procedure
Install bootloader
Copy the two files vmlinuz-linux and initramfs-linux.img from archlinux system to C: Drive
These two files will be used to preload
title archlinux
root (hd0,0)
kernel (hd0,0)/vmlinuz-linux ro vga=791
initrd (hd0,0)/initramfs-linux.img
boot
Installtion of Docker
pacman -S docker
docker -d &
docker pull ubuntu:latest
docker search redis
docker run ubuntu /bin/echo hello world
docker run -i -t ubuntu /bin/bash
docker run -p 6379:6379 redis /usr/local/bin/redis-server
docker ps -a
docker ps
docker stop ubuntu
docker rm ubuntu
docker login
docker push -m "Updated" -t me/ubuntu ubuntu
maniy popular images
alpine debian nginx