I can run Dotnet restore in package-manager without any problem.
I can run my project in Docker from Visual Studio as well. But when I will compose my yml file the command for Dotnet Restore will give 401 against my private VSTS packages.
I have NuGet.config and I have also tried to use --configfile for Dotnet restore and pointed out my NuGHet.config but still 401...
When I ping inside an interactive docker image to api.nuget.org it works so no network problems.
And I can't find any other having just this problem that was resolved. Please really need to fix this.
(might be the wrong forum but don't know where to ask. )
my NuGet.config
`<?xml version="1.0" encoding="utf-8"?>
`
## Steps to reproduce the issue
```
version: '3'
services:
ci-build:
image: microsoft/aspnetcore-build:1.0-2.0
volumes:
- .:/src
working_dir: /src
command: /bin/bash -c "dotnet restore ./JobOffice.Cart.WebApi.sln && dotnet publish ./JobOffice.Cart.WebApi.sln -c Release -o ./obj/Docker/publish"
```
```
docker-compose -f up
```
## Expected behavior
To work ;)
## Actual behavior
401
## Output of `dotnet --info`
```
.NET Command Line Tools (2.1.4)
Product Information:
Version: 2.1.4
Commit SHA-1 hash: 5e8add2190
Runtime Environment:
OS Name: debian
OS Version: 9
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/2.1.4/
Microsoft .NET Core Shared Framework Host
Version : 2.0.5
Build : 17373eb129b3b05aa18ece963f8795d65ef8ea54
```
## Output of `docker info`
```
Containers: 3
Running: 1
Paused: 0
Stopped: 2
Images: 3
Server Version: 17.12.0-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 89623f28b87a6004d4b785663257362d1658a729
runc version: b2567b37d7b75eb4cf325b77297b140ea686ce8f
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.60-linuxkit-aufs
Operating System: Docker for Windows
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.934GiB
Name: linuxkit-00155d011701
ID: HAZG:3TIA:FI7G:N2AR:UCIT:T45P:MZQQ:NGBU:PCDL:KVEJ:CMWG:3FFF
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 19
Goroutines: 36
System Time: 2018-02-20T19:12:07.338847Z
EventsListeners: 1
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
```
I can run Dotnet restore in package-manager without any problem. I can run my project in Docker from Visual Studio as well. But when I will compose my yml file the command for Dotnet Restore will give 401 against my private VSTS packages.
I have NuGet.config and I have also tried to use --configfile for Dotnet restore and pointed out my NuGHet.config but still 401...
When I ping inside an interactive docker image to api.nuget.org it works so no network problems.
And I can't find any other having just this problem that was resolved. Please really need to fix this. (might be the wrong forum but don't know where to ask. )
my NuGet.config `<?xml version="1.0" encoding="utf-8"?>