Проблема с docker в .NET не собирается проект ошибка 100
От: sokol74 Россия  
Дата: 13.02.18 12:20
Оценка:
Проблема в том, что не собирается проект docker в .NET

2>Err:1 http://security.debian.org stretch/updates InRelease

2> Temporary failure resolving 'security.debian.org'
2>Err:2 http://deb.debian.org/debian stretch InRelease
2> Temporary failure resolving 'deb.debian.org'
2>Err:3 http://deb.debian.org/debian stretch-updates InRelease
2> Temporary failure resolving 'deb.debian.org'
2>Reading package lists...
2>W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Temporary failure resolving 'deb.debian.org'
2>W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease Temporary failure resolving 'deb.debian.org'
2>W: Failed to fetch http://security.debian.org/dists/stretch/updates/InRelease Temporary failure resolving 'security.debian.org'
2>W: Some index files failed to download. They have been ignored, or old ones used instead.
2>Removing intermediate container ca9b9803af08
2> ---> 1096fe7a06b0
2>Step 4/9 : RUN apt-get install -y libgdiplus
2> ---> Running in d8c301fa462b
2>Reading package lists...
2>Building dependency tree...
2>Reading state information...
2>E: Unable to locate package libgdiplus
2>Service 'rpd.loader.service' failed to build: The command '/bin/sh -c apt-get install -y libgdiplus' returned a non-zero code: 100
2>
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(111,5): error : Building rpd.loader.service
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(111,5): error : Service 'rpd.loader.service' failed to build: The command '/bin/sh -c apt-get install -y libgdiplus' returned a non-zero code: 100.
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(111,5): error :
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(111,5): error : For more troubleshooting information, go to http://aka.ms/DockerToolsTroubleshooting
2>Done building project "docker-compose.dcproj" -- FAILED.
========== Rebuild All: 2 succeeded, 1 failed, 0 skipped ===

вот такие ошибки.
Было подозрение на библиотеку CoreCompat, я её удалил, ошибка та же самая.
Re: Проблема с docker в .NET не собирается проект ошибка 100
От: sokol74 Россия  
Дата: 13.02.18 12:25
Оценка:
Здравствуйте, sokol74, Вы писали:

S>Проблема в том, что не собирается проект docker в .NET


2>>Err:1 http://security.debian.org stretch/updates InRelease

2>> Temporary failure resolving 'security.debian.org'
2>>Err:2 http://deb.debian.org/debian stretch InRelease
2>> Temporary failure resolving 'deb.debian.org'
2>>Err:3 http://deb.debian.org/debian stretch-updates InRelease
2>> Temporary failure resolving 'deb.debian.org'
2>>Reading package lists...
2>>W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Temporary failure resolving 'deb.debian.org'
2>>W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease Temporary failure resolving 'deb.debian.org'
2>>W: Failed to fetch http://security.debian.org/dists/stretch/updates/InRelease Temporary failure resolving 'security.debian.org'
2>>W: Some index files failed to download. They have been ignored, or old ones used instead.
2>>Removing intermediate container ca9b9803af08
2>> ---> 1096fe7a06b0
2>>Step 4/9 : RUN apt-get install -y libgdiplus
2>> ---> Running in d8c301fa462b
2>>Reading package lists...
2>>Building dependency tree...
2>>Reading state information...
2>>E: Unable to locate package libgdiplus
2>>Service 'rpd.loader.service' failed to build: The command '/bin/sh -c apt-get install -y libgdiplus' returned a non-zero code: 100
2>>
2>>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(111,5): error : Building rpd.loader.service
2>>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(111,5): error : Service 'rpd.loader.service' failed to build: The command '/bin/sh -c apt-get install -y libgdiplus' returned a non-zero code: 100.
2>>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(111,5): error :
2>>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.Docker.targets(111,5): error : For more troubleshooting information, go to http://aka.ms/DockerToolsTroubleshooting
2>>Done building project "docker-compose.dcproj" -- FAILED.
S>========== Rebuild All: 2 succeeded, 1 failed, 0 skipped ===

S>вот такие ошибки.

S>Было подозрение на библиотеку CoreCompat, я её удалил, ошибка та же самая.


Бывает так, что если сделать Clean Solution, а потом Build (не ReBuild), то собирается. Но если делать Rebuild не собирается
Re[2]: Проблема с docker в .NET не собирается проект ошибка
От: VladCore  
Дата: 13.02.18 22:41
Оценка:
Здравствуйте, sokol74, Вы писали:

2>Err:3 http://deb.debian.org/debian stretch-updates InRelease

2> Temporary failure resolving 'deb.debian.org'

написано же — интернета нет в контейнере.

S>Бывает так, что если сделать Clean Solution, а потом Build (не ReBuild), то собирается. Но если делать Rebuild не собирается


в студии/vscode я не пробовал docker-интеграцию, скорее всего глючит пере-поднимание сети в контейнере. такое бывает и без студии, тогда смиритесь.

кто в студии пробовал эту интеграцию подтвердите или опровергните please.

в принципе совать интеграцию с докером в солюшн/проект необязательно — пусть кто-то один этим занимается.
Отредактировано 13.02.2018 22:44 VladCore . Предыдущая версия .
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.