Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Install Docker
Thank you for your donation

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Install Docker
12th May, 2019, 05:54 AM
Post: #4
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: Install Docker
I've installed and run Docker successfully on 2 different XBian systems, so I made a script to install it:

Code:
#!/bin/sh

#
# Script to install and check docker on XBian system
# Commands token from here:
#     https://docs.docker.com/install/linux/docker-ce/debian/#install-using-the-repository
#  
  
# Update the apt package index:
sudo apt-get update
  
# Install packages to allow apt to use a repository over HTTPS:
sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg2 \
    software-properties-common
  
# Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
  
# Set up the stable repository:
sudo add-apt-repository \
   "deb [arch=armhf] https://download.docker.com/linux/debian \
   $(lsb_release -cs) \
   stable"
  
# Update the apt package index:
sudo apt-get update
  
# Install the latest version of Docker CE and containerd, or go to the next step to install a specific version:
sudo apt-get install docker-ce docker-ce-cli containerd.io
  
# Check, of docker is already running, it should be
  
status docker
  
# Verify that Docker CE is installed correctly by running the hello-world image.
sudo docker run hello-world

On one machine, I'm running PiHole now in a Docker container Smile

You can cut and paste the script, store it make it executable and run it with sudo. Btw, Docker daemon is started automatically on reboot
Find all posts by this user
« Next Oldest | Next Newest »
Thread Closed 


Messages In This Thread
Install Docker - portboy - 27th Mar, 2019, 02:29 AM
RE: Install Docker - Nachteule - 2nd Apr, 2019, 07:31 AM
RE: Install Docker - deHakkelaar - 5th Apr, 2019, 03:52 AM
RE: Install Docker - Nachteule - 12th May, 2019 05:54 AM
RE: Install Docker - henrycooper - 3rd Mar, 2022, 07:42 PM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 24th May, 2025, 05:24 PM Powered By MyBB, © 2002-2025 MyBB Group.