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.

  1. Clone this repository
$ git clone https://github.com/godois/docker-workshop.git
  1. Running a Hello-World
$ docker run hello-world
  1. Running a Jenkins Container
$ docker run -p 8080:8080 -p 50000:50000 jenkins
  1. 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
  1. Building an image from a Dockerfile
$ docker build -t godois/show-da-xuxa:1.0 .
  1. Running show-da-xuxa container
$ docker run -d -it --name xuxa-container godois/show-da-xuxa:1.0
  1. Showing logs from inside the container
$ docker logs xuxa-container
  1. Getting into the container with a bash window command
$ docker exec -i -t xuxa-container /bin/bash
  1. Stopping xuxa-container
$ docker stop xuxa-container
  1. Kill all containers running
$ docker kill $(docker ps -a -q)
  1. Removing all containers killed
$ docker rm $(docker ps -a -q)
  1. Running a .net Core WebAPI Application
docker run -d -it \
    --name simple-dotnet-app \
    godois/dotnet-core-ubuntu:latest;
  1. 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;