GithubHelp home page GithubHelp logo

dockernight's Introduction

dockernight

Exercises and material for a 3-hour workshop for BeCode students.

Presentation

The link to the slides can be found here.

Exercises

  1. Clone the repository. Build the docker image.

Do not forget to add a tag (with the -t option) to avoid randomly generated image names.

  1. Run the image you just build.

  2. Enter into the running container and delete the targetfile. Look in the Dockerfile to see where it is.

  3. Exit the running container and stop the container.

  4. Delete the container.

  5. Run the container again, and look for the targetfile.

    hint: it should be back

  6. Exit the container, and try to write a command line that will delete your targetfile without getting into the container.

  7. Stop and remove the container. Run it again and map your container to a port through the command line (your docker container when running on port 80).

    Surfing to localhost:[ yourport ]/index.php should show you a Dockernight exercises webpage.

  8. Stop and remove the container. Run it again but mount the website directory as a volume, over the target directory, and expose a port.

    Surfing to localhost:[ yourport ]/index.php should show you a different webpage.

dockernight's People

Contributors

0ctavia avatar

Stargazers

Alexandre Plennevaux avatar Emmanuel Trépant avatar

Watchers

 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.