A docker-compose
configuration for launching a Microsoft Auto-Update Cache server.
You will need to install Docker Toolbox to use the docker-compose
command.
~$ eval $(docker-machine env <name>)
~$ cd /MAUCache-Docker
MAUCache-Docker$ docker-compose build
...
(The services are named maucache
and nginx
respectively)
MAUCache-Docker$ docker-compose up -d
The Nginx web server will start and serve traffic at the docker machine's IP address over port 80.
The MAUCacheAdmin script will start automatically and run every 15 minutes. This script will save all packages to /usr/share/nginx/html
which is within a volume also mounted by the Nginx container.
The maucachedocker_cache
volume will persist if you bring down the running containers.
To help troubleshoot the running containers, you can view the logs for each service:
~$ docker logs <name>
...
You may also launch a shell within the running container:
~$ docker exec -it <name> bash
root@xxxxx:/#