Information:
- Debian Buster
- .NET 5.0.102
- docker version: 20.10.2, build 2291f61
- docker-compose Version: 1.28.2, build 67630359
I want to build my docker-compose file which contains a blazor c# hosted server (server, client, shared) and a mysql database. I have a dockerfile included to publish the c# project and execute it. But everytime dotnet tries to publish it (with Dockerfile) i ran in the following error:
Error processing tar file(exit status 1): lchown /tmp/clr-debug-pipe-168-17764688-in: no such file or directory
If i try to "dotnet publish" the project without docker it runs fine.
It also run without any error on my windows machine inside the docker container.
Docker File:
FROM mcr.microsoft.com/dotnet/sdk:5.0.102-ca-patch-buster-slim-amd64 AS build
ADD . .
RUN dotnet publish -c Release -o Project.Name.Publish
WORKDIR /Project.Name.Publish/
ENTRYPOINT [ "dotnet" , "Project.Name.Server.dll" ]
Docker Ignore File:
.vs/
.vscode/
.github/
.git/
.gitignore
README.md
Docker-Compose:
version: '3.4'
services:
BlazorHostedServerd:
image: blazorhosted
build:
context: .
dockerfile: Dockerfile
ports:
- "5080:5012"
- "5443:5013"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- DOTNET_USE_POLLING_FILE_WATCHER=true
- ASPNETCORE_URLS=http://*:5012;https://*:5013
DB:
image: mysql:latest
volumes:
- "./.mysql-data/db:/var/lib/mysql"
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: RootPassword
MYSQL_DATABASE: databasedev
MYSQL_USER: admin
MYSQL_PASSWORD: AnyPassword
Source: Docker Questions
One Reply to “docker: Error: lchown /tmp/clr-debug-pipe-168-17764688-in: no such file or directory”
Hi,
I just encountered similar problem.. The solution was a simple upgrade.
my current versions without docker-compose:
.NET – 5.0.201
docker – 20.10.5, build 55c4c88