-
Notifications
You must be signed in to change notification settings - Fork 3
IoT Team task #11 Set up Docker & deploy sample container
Laila edited this page Jan 28, 2020
·
1 revision
I used this documentation to set up Docker on our Raspberry pi 3:
https://linuxize.com/post/how-to-install-and-use-docker-on-raspberry-pi/
- Prereqs: Have Noobs(Raspbian) on raspberry pi. Enable SSH.
- Connect raspberry pi device (with sd card inserted) to laptop via ethernet cable and usb power plug.
- Open up pi command prompt on raspberry pi display.
- Install Docker:
- Enter following commands:
- $ curl -fsSL https://get.docker.com -o get-docker.sh
- $ sh get-docker.sh
- The script will detect the Linux distribution, install the required packages, and start Docker.
- Wait a few minutes; That's it; Docker has been installed on raspberry pi board.
- Verify Docker works by running a 'hello-world' command:
- $ sudo docker container run hello-world
- The output will show Hello from Docker!
- Start a Docker container:
- $ sudo docker container run debian