Skip to content

Docker Container Development and Usage

Sean O'Donnell edited this page Jan 23, 2020 · 5 revisions

Development Notes

Create a docker branch starting from the development branch.

This is a personal reference for how I created the docker branch, from the development branch.

This will allow me to focus solely on docker container development within the confines of it's own branch.

Eventually I'll merge this into the master and release branches, or perhaps spawn this into a separate repo, but for now, I'll dedicate a single 'docker' branch.

Disclaimer: I suck at git. SourceTree made me lazy. Go F&^* yourself.

git clone git@github.com:sodonnell/rssbot2.git
cd rssbot2
git checkout development
git branch docker
git push origin docker

Building the Docker Image for Dockerhub Distribution

docker build -t seanodonnell/rssbot2 .

Saving the Docker Image as a Distributable Tarball

docker save -o rssbot2-docker-latest.tar.gz seanodonnell/rssbot2:latest

Pushing the Docker Image to Dockerhub Registry

docker push seanodonnell/rssbot2

Removing the Docker Image locally

docker rmi -f seanodonnell/rssbot2

End-User Notes

Install the rssbot2 Docker Container from Dockerhub

docker pull seanodonnell/rssbot2

Running the rssbot2 Docker Image

docker run -it seanodonnell/rssbot2

Running the rssbot2 Docker Image as a daemon process

docker run -dit seanodonnell/rssbot2

Restarting the rssbot2 Docker Image as a daemon process

docker run -dit --restart unless-stopped seanodonnell/rssbot2

Connecting to the Docker Image daemon process

docker exec -it `sudo docker ps -q` /bin/bash -c "export TERM=xterm; exec bash"

Stoping the rssbot2 Docker Image Daemon Process

docker stop `sudo docker ps -q`

Removing the rssbot2 Docker Image

docker rmi -f seanodonnell/rssbot2