-
Notifications
You must be signed in to change notification settings - Fork 0
Docker Container Development and Usage
Sean O'Donnell edited this page Jan 23, 2020
·
5 revisions
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
docker build -t seanodonnell/rssbot2 .
docker save -o rssbot2-docker-latest.tar.gz seanodonnell/rssbot2:latest
docker push seanodonnell/rssbot2
docker rmi -f seanodonnell/rssbot2
docker pull seanodonnell/rssbot2
docker run -it seanodonnell/rssbot2
docker run -dit seanodonnell/rssbot2
docker run -dit --restart unless-stopped seanodonnell/rssbot2
docker exec -it `sudo docker ps -q` /bin/bash -c "export TERM=xterm; exec bash"
docker stop `sudo docker ps -q`
docker rmi -f seanodonnell/rssbot2