install docker | zuhdi.org

Install Docker

Environment

  • Debian 9.7 x64
  • asas

Excerpt xxx

Log 2019 / 07

1. Pre

root@athos:~# apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade

apt-get -y --no-install-recommends install qemu-kvm \
  libvirt-daemon-system virtinst ebtables dnsmasq
 
root@athos:~# apt-get -y --no-install-recommends install qemu-kvm \
>   libvirt-daemon-system virtinst ebtables dnsmasq

mkdir /data/
chmod 777 /data/

virt-install \
--name ubuntu1404 \
--ram 1024 \
--disk path=/data/ubuntu1404.qcow2,size=8 \
--vcpus 1 \
--os-type linux \
--os-variant generic \
--network bridge=virbr0 \
--graphics none \
--console pty,target_type=serial \
--location 'http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/' \
--extra-args 'console=ttyS0,115200n8 serial'

virt-install \
--name ubuntu1404n \
--ram 1024 \
--disk path=/data/ubuntu1404n.qcow2,size=8 \
--vcpus 1 \
--os-type linux \
--os-variant generic \
--network bridge=virbr0 \
--graphics none \
--console pty,target_type=serial \
--location 'http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/' \
--extra-args 'ks=http://128.199.178.177/test.ks console=ttyS0,115200n8 serial'


root@athos:~# virsh net-list --all
 Name                 State      Autostart     Persistent
----------------------------------------------------------
 default              inactive   no            yes

root@athos:~# virsh net-autostart default
Network default marked as autostarted

root@athos:~# virsh net-start default

cat < /var/www/html/test.ks # # #Generic Kickstart template for Ubuntu #Platform: x86 and x86-64 #

#System language lang en_US

#Language modules to install langsupport en_US

#System keyboard keyboard us

#System mouse mouse

#System timezone timezone Asia/Kuala_Lumpur

#Root password rootpw –disabled

#Initial user (user with sudo capabilities) user ubuntu –fullname “Ubuntu User” –password password

#Reboot after installation reboot

#Use text mode install text

#Install OS instead of upgrade install

#Installation media #cdrom #nfs –server=server.com –dir=/path/to/ubuntu/ #url –url http://server.com/path/to/ubuntu/ #url –url ftp://server.com/path/to/ubuntu/

#System bootloader configuration bootloader –location=mbr

#Clear the Master Boot Record zerombr yes

#Partition clearing information clearpart –all –initlabel

#Basic disk partition part / –fstype ext4 –size 1 –grow –asprimary part swap –size 1024 part /boot –fstype ext4 –size 256 –asprimary

#Advanced partition #part /boot –fstype=ext4 –size=500 –asprimary #part pv.aQcByA-UM0N-siuB-Y96L-rmd3-n6vz-NMo8Vr –grow –size=1 #volgroup vg_mygroup –pesize=4096 pv.aQcByA-UM0N-siuB-Y96L-rmd3-n6vz-NMo8Vr #logvol / –fstype=ext4 –name=lv_root –vgname=vg_mygroup –grow –size=10240

–maxsize=20480

#logvol swap –name=lv_swap –vgname=vg_mygroup –grow –size=1024 –maxsize=8192

#System authorization infomation auth –useshadow –enablemd5

#Network information network –bootproto=dhcp –device=eth0

#Firewall configuration firewall –disabled –trust=eth0 –ssh

#Do not configure the X Window System skipx EOF

Hugo. Malte Kiefer & Zuhdi Najib.

ontainer has-text-centered">

Hugo. Malte Kiefer & Zuhdi Najib.