GithubHelp home page GithubHelp logo

apt-cacher's Introduction

apt-cacher

circleci

Apt-cacher is a simple apt package cache for use with Docker, but suitable in any case where an entire package mirror may be overkill.

Quickstart

docker run -d --name=apt-cacher quay.io/vektorcloud/apt-cacher:latest

After apt-cacher is up, start any following containers linked to the cache:

  • Ubuntu:
docker run -ti --link apt-cacher:security.ubuntu.com --link apt-cacher:archive.ubuntu.com ubuntu:latest /bin/bash
  • Debian:
docker run -ti --link apt-cacher:security.debian.org --link apt-cacher:ftp.debian.org debian:latest /bin/bash

To alternatively avoid having to link every running container, publish port 80 to the host:

docker run -d -p 80:80 --name=apt-cacher quay.io/vektorcloud/apt-cacher:latest

and add an /etc/hosts entry on the host pointing to localhost or the address of the interface you have docker bound to:

127.0.0.1    ftp.debian.org
127.0.0.1    security.debian.org
127.0.0.1    archive.ubuntu.com
127.0.0.1    security.ubuntu.com

apt-cacher's People

Contributors

bcicen avatar niknee avatar

Stargazers

L. Costa avatar Artur Gurov avatar Alex Mills avatar Tian-Xiang Mao avatar anatoly techtonik avatar jon ⚝ avatar serkan haytac avatar Manoj avatar rojaro avatar  avatar Massimo Santini avatar Tim Noeding avatar David Irvine avatar

Watchers

anatoly techtonik avatar James Cloos avatar  avatar

Forkers

techtonik

apt-cacher's Issues

Fails to start

✗ docker logs apt-cacher   
nginx: invalid option: "/bin/sh"

Inspect:

       "Path": "nginx",
        "Args": [
            "/bin/sh",
            "-c",
            "/bin/bash /run.sh"
        ],

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.