Intro to Backend Development
  • Introduction
  • SP25 Syllabus
  • Apply to Take the Course
  • Getting Started
  • Weekly Feedback Form
  • Ed Discussion
  • Intro to Backend SP25 Google Calendar
  • Cheat Sheets
    • Assignment Requirements
    • Assignment FAQs
    • Error FAQs 😢
    • Concept FAQs
    • Postman
    • Command Line
    • Virtual Environment
  • Chapters
    • 1. Routes
      • Pre-Class TODO's
      • Lecture
      • Assignment Handout
      • API Specification
    • 2. Databases
      • Pre-Class TODO's
      • Lecture
      • Demo
      • Assignment Handout
      • API Specification
    • 3. Relational Databases
      • Pre-Class TODO's
      • Lecture
      • Demo
      • Assignment Handout
      • API Specification
    • 4. Abstractions
      • Pre-Class TODO's
      • Lecture
      • Demo
      • Assignment Handout
      • API Specification
    • 5. Containerization
      • Pre-Class TODO's
      • Docker Installation
      • Lecture
      • Demo
      • Assignment Handout
    • 6. Deployment
      • Lecture
      • Demo
      • Assignment Handout
    • 7. Images
      • Demo
      • Assignment Handout
    • 8. Authentication
      • Lecture
      • Demo
      • Assignment Handout
    • (Work in Progress) OAuth
      • Pre-Class TODO's
      • Lecture
      • Demo
      • OAuth 2.0 vs OpenID
      • Flask / OpenID example
  • Additional Topics
    • Git and Github
    • HackOurCampus
  • Other AppDev Courses
    • Intro to iOS Development
    • Intro to Android Development
    • Intro to Digital Product Design
  • Deprecated
    • Previous Semester Syllabi
      • FA22 Syllabus
      • SP22 Syllabus
      • FA21 Syllabus
      • SP21 Syllabus
      • FA20 Syllabus
      • SP20 Syllabus
    • Deployment Pre-Class TODO's
    • PA6 Assignment Handout
    • Deployment Demo
    • Final Project (Spring 2019)
      • Final Project Award Winners
Powered by GitBook
On this page
  • Installation Instructions
  • Mac
  • Windows
  • Windows (Really Bad Alternative)
  • Linux
  • Is It Working?
  • Typical Errors
  • Is Docker daemon running?
  • Has Docker daemon been "starting" for a long time, and unable to run?
  • Is the port already being used somewhere?

Was this helpful?

  1. Chapters
  2. 5. Containerization

Docker Installation

Contributors: Alicia Wang, Alanna Zhou

PreviousPre-Class TODO'sNextLecture

Last updated 1 year ago

Was this helpful?

We’ll be using Docker in this course as a platform-agnostic way of ensuring that all development is done on the same operating system, letting us (the course staff) take care of installation issues, and avoid OS-specific installation issues.

Installation Instructions

Mac

1) Install Docker

Windows

1) Install Docker

Windows (Really Bad Alternative)

1) Set up your VM

2) Install Docker on your VM

2) Install Docker Compose on your VM

Linux

1) Install Docker (Ubuntu)

2) Install Docker Compose (Ubuntu)

For other Linux distributions, see the individual guides:

Is It Working?

You can check that you've successfully installed Docker with: docker --version

Typical Errors

Is Docker daemon running?

If you're using Docker Desktop, make sure to start the Docker application before attempting to run Docker commands.

Has Docker daemon been "starting" for a long time, and unable to run?

Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory

This means that your Docker desktop is having trouble running (it may be "starting" for a long time), and that might be because you don't have enough space on your computer -- try to delete some stuff!

Is the port already being used somewhere?

Try docker rm -fv $(docker ps -aq) but it's recommended that you use the Docker Compose command (that is, if you've installed Docker Compose and have a docker-compose.yml file in the directory that you will be running the following command): docker-compose down

works fairly well on newer machines. You may have to install the . Try this and if it doesn't work, come to Office Hours, because the other option is daunting.

The other option is downloading a (a Virtual Machine) and installing Docker through there.

Docker on Windows
Linux kernel update package
Virtualbox
https://docs.docker.com/docker-for-mac/install/docs.docker.com
Install Docker Desktop on WindowsDocker Documentation
Ubuntu VM Install Guide
Logo
How To Install and Use Docker on Ubuntu 18.04 | DigitalOceanDigitalOcean
How To Install and Use Docker on Ubuntu 18.04 | DigitalOceanDigitalOcean
How To Install Docker Compose on Ubuntu 18.04 | DigitalOceanDigitalOcean
How To Install Docker Compose on Ubuntu 18.04 | DigitalOceanDigitalOcean
https://docs.docker.com/v17.12/install/#serverdocs.docker.com
Logo
Logo
Logo
Logo