Skip to content

Nirespire/docker-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-tutorial

Prerequisites

Getting Started

Note: Make sure to stop running containers between steps, else you might encounder errors.

If a container is running in the background using the -d flag, you can stop it with:

docker ps to find the running containers and

docker stop <CONTAINER ID> to stop a running container

Run a MongoDB in a Docker container

docker run --name my-mongo –d –p 27017:27017 mongo

Run this Python app by itself

pip install -r requirements.txt

python app.py

Navigate to http://localhost:8080

Run this Python app in a Docker container

docker build -t mypythonapp .

docker run -p 8080:8080 --name mypythoncontainer mypythonapp

Run this Python app with Redis in containers using Docker Compose

docker-compose build docker-compose up

Run Graylog with multiple components using Docker Compose

cd graylog_example docker-compose up

About

Quickstart resource for Docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published