Month: December 2022

Installing Docker Engine on Ubuntu 20.04 in one command

sudo apt-get remove -y docker docker.io containerd runc \
&& sudo apt-get update \
&& sudo apt-get install -y \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg \
    lsb-release \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --batch --yes --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \
&& echo \
  "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& sudo apt-get update && sudo apt-get install -y docker-ce docker-ce-cli docker-compose-plugin containerd.io \
&& sudo docker run --rm hello-world
Posted by admin in Linux, 0 comments

Creating Proxmox Cloud-Init VM Ubuntu 20.04

All in one step
wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img \
  && qm create 9020 --memory 2048 --net0 virtio,bridge=vmbr0,tag=18 --agent enabled=1 --cores 2 --ostype l26 --name ubuntu20-template \
  && qm importdisk 9020 focal-server-cloudimg-amd64.img local-lvm \
  && qm set 9020 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9020-disk-0 \
  && qm resize 9020 scsi0 +8G \
  && qm set 9020 --scsi0 local-lvm:base-9120-disk-0,mbps_rd=100,mbps_wr=100,iops_rd=100,iops_wr=100 \
  && qm set 9020 --scsi2 local-lvm:cloudinit \
  && qm set 9020 --boot c --bootdisk scsi0 \
  && qm set 9020 --serial0 socket --vga serial0 \
  && echo Finished
Continue reading →
Posted by admin, 0 comments