Giter Club home page Giter Club logo

storage_wars's Introduction

storage_wars

This repo currently spins up a docker container that sleeps for 3000000 seconds.

The flow works like this:

  • You write a Dockerfile (the plans for the blueprint for our Container).
  • You docker build it into an Image (our blueprint).
  • Then, you launch the Container via docker run.

The commands are:

  1. docker build .
  2. docker run -d <image-id>
  3. docker ps

To see if this worked,

  1. docker ps, look for running containers.
  2. docker exec -it <container ID> bash

When done, you can stop and remove.

  1. docker stop <container-id> or docker stop $(docker ps -a -q)
  2. docker rm <container-id> or docker rm $(docker ps -a -q)

For run_script.sh,

  • Use chmod 777 run_script.sh

Bonus - Going Into One Container and Reaching Out to Another One

  • exposes the port for the container with docker build --tag python-docker .
  • docker run -d -p 5000:5000 <image>
  • https://docs.docker.com/config/containers/container-networking/
  • go into the container with docker exec -it <container-id> bash
  • install curl apt-get update and apt-get install curl inside the container
  • curl --location --request GET '0.0.0.0:5000'

storage_wars's People

Contributors

chinichilla avatar duncanpharvey avatar

Watchers

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.