Giter Club home page Giter Club logo

docker-devpi's Introduction

docker-devpi

This repository contains a docker-compose.yml, which can be used to build 2 docker images from 2 services, devpi and nginx, which share a named volume server.

The purpose of this image is to serve devpi with nginx.

Both images are currently based on python:3.8.14-slim.

The nginx webserver listens on the host port 80, which is mapped to 8080 in the container. You can change this by adjusting proxy_set_header X-outside-url in nginx/nginx.conf, the port mapping in docker-compose.yml and nginx/Dockerfile.

Docker commands

List images

docker image ls

This shows info about images, such as their IDs.

List containers (with total file sizes)

docker container ls -s

List volumes

docker volume ls

Build the images

docker-compose build

To rebuild an image, just re-execute the previous command above. Note that this doesn't affect the volumes, i.e. they are not deleted, and, if you changed something in the directory that is mounted to a volume, the next time you rebuild the image and the container, you will still have your changes.

Start a container

docker-compose up -d

To recreate a container, just re-execute the previous command above. This also doesn't delete the existing volume.

Delete an image

docker image rm <image-id>

Delete a container

  1. docker container stop <container-id>
  2. docker container rm <container-id>

Delete a volume

docker volume rm <volume-id>

Delete all unused volumes

docker volume prune

Copy /devpi/server into a local folder on the host

docker cp <container-id>:/devpi/server <host-destination-folder>

Backup a volume

See the documentation.

License

MIT License

docker-devpi's People

Contributors

dbrgn avatar ddoskind avatar nbro10 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.