Docker example of creating simple dockerized app

September 25th, 2020

Here is a very simple example of how to create a dockerized app:

docker run -d centos /bin/bash -c 'while true; do X=$[$X+1]; echo $X; sleep 1; done'

To check if it is running:

docker ps

To check the output, use the auto-assigned name or (unique) portion of the container id

docker logs auto-name

To stop:

docker stop name

To start

docker start name

 

Installing Docker

September 25th, 2020

The easiest way to install Docker (on linux) is to use the following

curl -fsSL https://get.docker.com -o get-docker.sh
chmod 755 get-docker.sh
./get-docker.sh

 

How to start a shell in a Docker container

September 3rd, 2020

To list the docker processes and get the container id:
docker ps

Then use:
docker exec -it <containerIdOrName> bash

How to get bash or ssh into a running container in background mode?

How to have an app run on Startup in Windows 10

September 3rd, 2020

Press Windows+R to bring up the Run menu
Type "shell:startup" and hit enter
Create a shortcut in that folder to the program you want to run on startup

Individually Addressable Whole House Holiday LEDs

September 3rd, 2020