Code Monkey home page Code Monkey logo

docker-workshop-1's Introduction

Running in a Docker container

This is a getting started workshop for using Docker, and focuses on using it for development since that is a logical and no-risk place to start. We will use an ASP.NET Core app for the exercise, but any app on most stacks that can run on Linux should work. You will be guided through running a container from an image from Docker Hub. Then you'll create your own image & container, in order to build and run an app inside the container, without having to install anything locally except Docker.

Here's an accompanying slide deck and course outline, for delivering this workshop to a group.

Preparation

Please go through these steps before the workshop, to ensure you don't spend time with setup, and downloading a large Docker image.

  1. Install Docker & Run a Container Follow Docker's installation instructions for your platform, including the section for testing it to ensure it's working.

  2. On Windows only, you will have to share your drive. You can do this by:

    • Right-clicking the docker tray icon
    • Selecting Settings...
    • On the left-hand side, select Shared Drives
    • Check the appropriate drive and click Apply
    • Enter your user account's password and click OK.
  3. Test the installation by running the offical Jenkins container. It will download the image from Docker Hub if it doesn't find it already in your local Docker repo:

    docker run -d -p 49001:8080 -v $PWD/jenkins:/var/jenkins_home:z -t jenkins

  4. Download the ASP.NET Core development Docker image (wi-fi because it's large), by running this from your terminal:

    docker pull microsoft/aspnetcore-build

Get started!

docker-workshop-1's People

Contributors

wyntuition avatar sudo-bmitch avatar wagoodman avatar seankilleen avatar

Watchers

fire9 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.