Sign inSign up

vvucetic/nuget-server

By vvucetic

•Updated over 9 years ago

Nuget Server hosted in Windows Container

Image
0

1.4K

vvucetic/nuget-server repository overview

⁠Nuget-Server-Docker-Container

Repository: https://github.com/vvucetic/Nuget-Server-Docker-Container⁠

This is implementation of NuGet Server⁠ package in web application described here⁠ and delivered in Windows Container.

⁠Run container

Example usage:

docker run --name NugetServer -d -p 8080:8080 -v C:/NugetServer/Packages:C:/packages -e API_KEY=**generate_your_key** vvucetic/nuget-server:latest 

Please note that you need to generate API KEY and provide in env variable like in example.

⁠Inspect IP of container

With the current release, you can't use http://localhost⁠ to browse your site from the container host. This is because of a known behavior in WinNAT, and will be resolved in future. Until that is addressed, you need to use the IP address of the container.

Once the container starts, you'll need to finds its IP address so that you can connect to your running container from a browser. You use the docker inspect command to do that:

docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" NugetServer,

or execute

start http://$(docker inspect -f '{{ .NetworkSettings.Networks.nat.IPAddress }}' NugetServer):8080

to open directly in default browser.

Tag summary

Content type

Image

Digest

Size

5.1 GB

Last updated

over 9 years ago

docker pull vvucetic/nuget-server