Skip to content

Instantly share code, notes, and snippets.

@cargo12
cargo12 / hetzner-proxmox-docker.sh
Created September 4, 2018 16:03 — forked from rwenz3l/hetzner-proxmox-docker.sh
Hetzner Dedicated with Debian 9 (Stretch) and Proxmox 5 (LXC) + Docker-CE + Portainer [NAT]
#############################################
### Proxmox V & Docker-CE + Portainer #
#############################################
## Rescue System
# Erase other disks
dd if=/dev/zero of=/dev/sda bs=1M count=100
dd if=/dev/zero of=/dev/sdb bs=1M count=100
# You can install debian 9 via the guide:
@cargo12
cargo12 / install-docker-ubuntu.md
Created September 4, 2018 15:49 — forked from ashtaev/install-docker-ubuntu.md
Как установить Docker на Ubuntu
#!/bin/bash
echo "Install dependencies"
apt install -y software-properties-common
echo "Install docker"
curl -fsSL get.docker.com -o /tmp/get-docker.sh
sh /tmp/get-docker.sh
rm /tmp/get-docker.sh
echo "Install docker compose"
{
snippet: {
expanded: true,
newSnippetPrivate: false,
sorting: "updated_at",
sortingReverse: true
},
editor: {
tabSize: 4
},
$ cat test.sh
#!/bin/bash
while read line
do
echo "Line is : $line"
done < file
On running the above script:
$ ./test.sh
Line is : Solaris Sun 25