docker-workshop
Baby-steps from the Sage Docker workshop
Note: The fastest way to get this application up and running locally is using Docker. Be sure that you have at least Docker 1.13.0 installed on your machine.
- Clone this repository
$ git clone https://github.com/godois/docker-workshop.git
- Running a Hello-World
$ docker run hello-world
- Running a Jenkins Container
$ docker run -p 8080:8080 -p 50000:50000 jenkins
- Running a Jenkins Container - with volume and port bindings
$ docker run -p 8080:8080 -p 50000:50000 -v /home/marcio/jenkins:/var/jenkins_home jenkins
- Building an image from a Dockerfile
$ docker build -t godois/show-da-xuxa:1.0 .
- Running show-da-xuxa container
$ docker run -d -it --name xuxa-container godois/show-da-xuxa:1.0
- Showing logs from inside the container
$ docker logs xuxa-container
- Getting into the container with a bash window command
$ docker exec -i -t xuxa-container /bin/bash
- Stopping xuxa-container
$ docker stop xuxa-container
- Kill all containers running
$ docker kill $(docker ps -a -q)
- Removing all containers killed
$ docker rm $(docker ps -a -q)
- Running a .net Core WebAPI Application
docker run -d -it \
--name simple-dotnet-app \
godois/dotnet-core-ubuntu:latest;
- Running a .net Core WebAPI Application with Binding volume
docker run -d -it \
--name simple-dotnet-app \
-v /home/marcio/Documents/hw-webapi:/tmp \
-p 5000:5000 \
godois/dotnet-core-ubuntu:latest;