User Tools

Site Tools


docker:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docker:start [2023/06/01 06:19] – external edit 127.0.0.1docker:start [2023/07/19 06:13] (current) onoitsu2
Line 1: Line 1:
-Factory restore docker +Install Proxmox https://pve.proxmox.com/pve-docs/chapter-pve-installation.html
-    rm -rf /var/lib/docker+
  
-Install Docker Manually +Run the following items from https://tteck.github.io/Proxmox/
-Update the apt package index and install packages to allow apt to use a repository over HTTPS:+
  
-    apt-get update+**Proxmox VE Post Install** 
 +<code>bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/post-pve-install.sh)"</code> 
 +When it asks to update, Yes. Reboot Yes.
  
-    apt-get install \ 
-    apt-transport-https \ 
-    ca-certificates \ 
-    curl \ 
-    gnupg \ 
-    lsb-release 
  
-Add Docker’s official GPG key: +**Proxmox VE Processor Microcode** 
-    curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg+<code>bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/microcode.sh)"</code> 
 +Reboot at the end again.
  
-Use the following command to set up the stable repository: +**Docker LXC** 
-  echo \ +<code>bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/docker.sh)"</code> 
-  "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \ +I set mine to advanced, debian 12, Privileged (I do this because of usb passthrough needs and need to mount CIFS/NFS), 22GB (your needs will vary, do not set too low or it will fill FAST), Cores 3 (total - 1 for Proxmox as overhead for my little quad core host systems, but 2 can allow another VM room to live), 3GB RAM (your needs will vary and can be edited later), Enable FUSE Overlay! (I have it because of GlusterFS and other overlay needs). 
-  $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null+
  
-Update the apt package index, and install the latest version of Docker Engine and containerd: +Yes to Install Portainer (if you want to easily be able to access and manage docker tasks from a non-command line) 
-    apt-get update +Yes to Docker Compose (needed for stacks and other advanced docker needs)
-    apt-get install docker-ce docker-ce-cli containerd.io+
  
-Verify docker is running on the system: +After created, adjust SWAP to 1GB (your needs may vary, but do by choosing the LXC in Proxmox > Resources) 
-    systemctl status docker+Restart the LXC via Proxmox (Portainer setup may have timed out if you don't)
  
 +Connect ASAP to your whatever your dockerIP is on port 9000 in your browser (in a new tab of course, as you may want to do more proxmox stuff)
  
-Install Portainer: 
-    docker run -d \ 
-    --name="portainer" \ 
-    --restart on-failure \ 
-    -p 9000:9000 \ 
-    -v /var/run/docker.sock:/var/run/docker.sock \ 
-    -v portainer_data:/data \ 
-    portainer/portainer-ce 
          
 [[Docker:qbt]] [[Docker:qbt]]
docker/start.1685600348.txt.gz · Last modified: 2023/06/01 06:19 by 127.0.0.1