Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zenxedo/626275e095f7f90898944a85d66b3be6 to your computer and use it in GitHub Desktop.
Save zenxedo/626275e095f7f90898944a85d66b3be6 to your computer and use it in GitHub Desktop.

Create ubuntu VM during the prompts select yes to download ssh

login into VM thorough ssh change to root

sudo su
apt-get update
apt-get upgrade

Install Docker https://docs.docker.com/install/linux/docker-ce/ubuntu/

#insert code here

Install Docker Compose https://docs.docker.com/compose/install/

sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Mount NFS https://smallbusiness.chron.com/mount-smb-nfs-shares-ubuntu-31706.html

sudo apt-get install nfs-common
sudo mount -o soft,intr,rsize=8192,wsize=8192 10.68.69.2:/mnt/myVol/appsNFS /mnt
##make persistant with reboots add a line in /etc/fsatab
sudo nano /etc/fstab ## then add the line from below
#    10.68.69.2:/mnt/myVol/docker   /mnt/docker   nfs    auto  0  0
#    10.68.69.2:/mnt/myVol/media   /mnt/media   nfs    auto  0  0

Install Portainer

docker run -d -p 9000:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /mnt/portainer:/data portainer/portainer

Get started with docker compose https://docs.docker.com/compose/gettingstarted/

mk dir container1
cd container1
touch docker-compose.yml
nano docker-compose.yml
##paste in a docker compose yml of your favorite container and edit the variables correctly, save
##stay in the directory and run
docker-compose up
##navigate to portainer or go directly to you the newly created container

Update Via Docker Compose

Update all images: docker-compose pull
or update a single image: docker-compose pull radarr
Let compose update all containers as necessary: docker-compose up -d
or update a single container: docker-compose up -d radarr
You can also remove the old dangling images: docker image prune

Macvlan

  docker network create -d macvlan  \
    --subnet=10.68.69.0/24  \
    --ip-range=10.68.69.0/24 \
    --gateway=10.68.69.1  \
    -o parent=ens18 macvlan0
@denvers
Copy link

denvers commented Mar 29, 2021

I had to change this line to remove the update nag:

sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service

into:

sed -i.bak "s/data.status.toLowerCase() !== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service

@vyv2000
Copy link

vyv2000 commented Nov 15, 2021

Thank you so much!
This problem has been bothering me for a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment