2017-12-17 8 views
0

TeamCity Linux 에이전트 설치를 시도하고 있습니다 도커 내에서. 에이전트는 dotnet core 2 앱을 제작 한 다음 앱에서 도커 빌드를 수행 할 수 있어야합니다.Team City Linux Agent Docker 빌드 실패 (Docker의 Docker) - /var/lib/docker/aufs/mnt/...-init에 대한 aufs 마운트 오류 발생 : 잘못된 인수

Docker는 Windows 10 atm에서 실행되지만 계획은 컨테이너가 AWS의 Linux에서 실행된다는 것입니다.

나는 TC Agent 컨테이너를 설치하고 실행 중이며, dotnet stuff는 정렬되었지만 고정 장치에 붙어 있습니다. 다음

는 TC 에이전트 로그입니다 :

[08:33:47]Step 2/2: Docker Build (2m:16s) 
[08:33:48][Step 2/2] Starting: docker build --pull -f Dockerfile . 
[08:33:48][Step 2/2] in directory: /opt/buildagent/work/274731defed46d9f/think.ETL 
[08:33:48][Step 2/2] 
[08:33:48][Step 2/2] Step 1/9 : FROM microsoft/aspnetcore:2.0.4 
[08:33:51][Step 2/2] 2.0.4: Pulling from microsoft/aspnetcore 
[08:33:52][Step 2/2] 723254a2c089: Pulling fs layer 
[08:33:52][Step 2/2] 499be8ca2075: Pulling fs layer 
[08:33:52][Step 2/2] a6854c900e79: Pulling fs layer 
[08:33:52][Step 2/2] 36653ffe7e35: Pulling fs layer 
[08:33:52][Step 2/2] 2c2c279d1b1a: Pulling fs layer 
[08:33:52][Step 2/2] 36653ffe7e35: Waiting 
[08:33:52][Step 2/2] 2c2c279d1b1a: Waiting 
[08:33:54][Step 2/2] a6854c900e79: Download complete 
[08:35:02][Step 2/2] 36653ffe7e35: Verifying Checksum 
[08:35:02][Step 2/2] 36653ffe7e35: Download complete 
[08:35:30][Step 2/2] 499be8ca2075: Verifying Checksum 
[08:35:30][Step 2/2] 499be8ca2075: Download complete 
[08:35:41][Step 2/2] 2c2c279d1b1a: Verifying Checksum 
[08:35:41][Step 2/2] 2c2c279d1b1a: Download complete 
[08:35:54][Step 2/2] 723254a2c089: Verifying Checksum 
[08:35:54][Step 2/2] 723254a2c089: Download complete 
[08:35:58][Step 2/2] 723254a2c089: Pull complete 
[08:35:59][Step 2/2] 499be8ca2075: Pull complete 
[08:36:00][Step 2/2] a6854c900e79: Pull complete 
[08:36:01][Step 2/2] 36653ffe7e35: Pull complete 
[08:36:04][Step 2/2] 2c2c279d1b1a: Pull complete 
[08:36:04][Step 2/2] Digest: sha256:0a54eac597bdb205f3023410741d7492dcb52cf9a5b1f917755dc755339e4002 
[08:36:04][Step 2/2] Status: Downloaded newer image for microsoft/aspnetcore:2.0.4 
[08:36:04][Step 2/2] ---> e49b04bf00d5 
[08:36:04][Step 2/2] Step 2/9 : ARG source 
[08:36:04][Step 2/2] error creating aufs mount to /var/lib/docker/aufs/mnt/ccc81e8c41476a5f72ea23ffc7222ba9b65c47b032a389db9acec26730d1a114-init: invalid argument 
[08:36:04][Step 2/2] error creating aufs mount to /var/lib/docker/aufs/mnt/ccc81e8c41476a5f72ea23ffc7222ba9b65c47b032a389db9acec26730d1a114-init: invalid argument 
[08:36:04][Step 2/2] Process exited with code 1 
[08:36:04][Step 2/2] Process exited with code 1 
[08:36:04][Step 2/2] Step Docker Build failed 

이 내가 최대

어딘지 얻기 위해 내 지시입니다 - https://hub.docker.com/r/jetbrains/teamcity-agent/

  • 고정 표시기 - TC 에이전트 설치 -d - \ TeamCity \ Agent \ conf :/data/teamcity_agent/conf --privileged -e DOCKE를 실행하십시오. -it --name - 팀 - 에이전트 - 리눅스 - e SERVER_URL = "http://192.168.50.217:8111" R_IN_DOCKER = "시작"JetBrains의/인 TeamCity 에이전트

- 닷넷 코어 2 배 설치 - https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x

-에 대한 수정 VS2017 Docker-Compose 프로젝트 나누기 빌드 - 명령 줄에서 https://github.com/dotnet/cli/issues/6178

  • 에서 mkdir /usr/share/dotnet/sdk/2.0.0/Sdks/Microsoft.Docker.Sdk
  • 복사 C : \의 Program Files (x86) \ 마이크로 소프트 비주얼 스튜디오 \ 2,017 {SKU} \ MSBuild를 \ Sdks \ Microsoft.Docker.Sdk \ Sdk를 D : \ TeamCity \ Agent \ conf (/usr/share/dotnet/sdk/2.0.0/Sdks)
  • cp -a /data/teamcity_agent/conf/Microsoft.Docker .Sdk//usr/share/dotnet/sdk/2.0.0/Sdks/
  • 내가 읽고 (실패) 따랐다

nuget을 설치

  • 쉽다는 sudo Error: "error creating aufs mount to" when building dockerfile

    내가 오류 를 해결할 수있는 방법을 617,451,515,

    그래서 어떤 아이디어 "오류 생성 AUFS 마운트로의/var/lib 디렉토리/고정 표시기/AUFS을/mnt/ccc81e8c41476a5f72ea23ffc7222ba9b65c47b032a389db9acec26730d1a114 - 초기화 : 잘못된 인수"/var/lib/docker 외부에 장착해야처럼

  • +0

    인 TeamCity 추적기에서 관련 문제 (아직 해결) : https://youtrack.jetbrains.com/issue/TW- 52939 – KIR

    답변

    1

    보인다 Windows 및 TeamCity 빌드 에이전트는 패키지를 상자 밖으로 선언하지 않습니다.Windows에서 JetBrains의/인 TeamCity 에이전트를 시작할 때

    이 솔루션은 -v docker_volumes:/var/lib/docker 같은 인수를 전달하는 것입니다

    +0

    고마워요. 그것은 트릭을했다. 이제 Jetbrains에서 자신의 문서를 업데이트하십시오 : | –

    +0

    설명서가 업데이트되었습니다. 새로운 예외에 대해서는 http://youtrack.jetbrains.com/issue/TW-52939 – KIR

    +0

    에서 자세한 내용을 제공해주십시오. 나는 그것이 나의 오타이기 때문에 나의 마지막 코멘트를 삭제했다. –

    관련 문제