Installing Ubuntu(or kubuntu) and installing Docker(Part 1)

This is going to be a pretty long series but I will try to keep it easy to read and understandable. This is not hard. But I am around for questions. Lets get started!

A few things to note before we begin

  • You will definitely want to use Ubuntu(16,18, or 19) or kubuntu(16,18,19). I am using kubuntu 19.04 because its visually appealing and works better with my graphics on the server than Ubuntu does.
  • A fresh install is desired but not required.
  • A newly formatted flash drive.

Here are the steps to install kubuntu19.04:

  1. Download the .iso file from here.
  2. Download Rufus and install it from here.
  3. Run Rufus as an administrator and select the device in the top menu(the USB drive you want to install the OS on)
  4. Boot Selection(Disk or ISO) and select the ISO image you downloaded.rufus.png
  5. Start the process. Then make sure Write in ISO is selected and proceed then itll tell you its deleting everything on it. Press ok.
  6. When it says READY again at the bottom in green the drive is ready to be inserted into the machine your installing it.

Now there might be different things you need to do but for me I had to make sure I selected to boot from the USB Drive during startup so it could begin the installation. It's all self explanatory from there on out and is really easy. When it is done it'll prompt you telling you you need to reboot. Once you reboot you'll be greeted with a login screen. Enter the login information you entered during the installation. That's it! kubuntu is installed. You might need to configure drivers, etc. If you do just google it, ubuntu instructions work for kubuntu.

Now it is time for the docker and docker-compose installation!

  1. First you want to open terminal(can find that by typing terminal into the search bar)
  2. Copy and paste this into the terminal: curl -fsSL | sudo apt-key add -
  3. Then you will want to copy and paste this into the terminal as well: sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable edge"

  4. Your going to have to run a update now to retrieve information from the newly added repository by copy and pasting this into the terminal:sudo apt-get update && apt-cache policy docker-ce

  5. After you see the output with the docker version, its time to actually install docker with copying this into the terminal: 

    sudo apt-get install -y docker-ce
  6. You want to check the status of docker to make sure it's running with entering this into the terminal:
    sudo systemctl status docker
  7. If that says active(running) your all set! If you don't want to need to use sudo each time you use docker or docker-compose you can add this into the terminal to fix it:
    sudo usermod -aG docker ${USER}
  8. After you have ran that command, logout and log back in to your account. That's to fix you not needing to type sudo before docker and docker-compose.
  9. Now to install docker-compose copy and paste this into your terminal:sudo curl -L "$(uname -s)-$(uname -m)" -o /

After you retrieve docker-compose you need to make it executable with:

sudo chmod +x /usr/local/bin/docker-compose && sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

Once that command has been ran, type docker-compose -v and see if it outputs the version. If so congratulations! If not, there are some other problems that may be of concern. Feel free to post a comment asking about it!