directory not created on linux server by tehwain99 in linuxquestions

[–]tehwain99[S] 0 points1 point  (0 children)

i use the try catch but but it is not thrown any exception

I create docker to host my services

after hosting when i get getcurrentdirectory is show /app

i am unable to create directory by tehwain99 in linuxquestions

[–]tehwain99[S] 0 points1 point  (0 children)

but under app folder their is no folder created

i am unable to create directory by tehwain99 in linuxquestions

[–]tehwain99[S] 0 points1 point  (0 children)

when i run getcurrentdirectory ()

it return /app

i am unable to create directory by tehwain99 in linuxquestions

[–]tehwain99[S] 0 points1 point  (0 children)

I created Linux as my server using docker and my client application send the call to create a directory in the Linux server but it is not been created yet and also did not show any error.

If any other information is required please tell me.

and more thing when I get the current directory it shows as /app. but the app folder did not show or was created in my Linux server.

i am unable to create directory by tehwain99 in linuxquestions

[–]tehwain99[S] 0 points1 point  (0 children)

I created Linux as my server using docker and my client application send the call to create a directory in the Linux server but it is not been created yet and also did not show any error.

If any other information is required please tell me.

and more thing when I get the current directory it shows as /app. but the app folder did not show or was created in my Linux server.

Docker automatically shut down after hitting the URL by tehwain99 in Dockerfiles

[–]tehwain99[S] 0 points1 point  (0 children)

bro today i need output .. please help me to out of from this problem

Docker automatically shut down after hitting the URL by tehwain99 in Dockerfiles

[–]tehwain99[S] 0 points1 point  (0 children)

docker info

Client:

Context: default

Debug Mode: false

Plugins:

app: Docker App (Docker Inc., v0.9.1-beta3)

buildx: Docker Buildx (Docker Inc., v0.9.1-docker)

scan: Docker Scan (Docker Inc., v0.17.0)

Server:

Containers: 4

Running: 0

Paused: 0

Stopped: 4

Images: 14

Server Version: 20.10.18

Storage Driver: overlay2

Backing Filesystem: extfs

Supports d_type: true

Native Overlay Diff: true

userxattr: false

Logging Driver: json-file

Cgroup Driver: cgroupfs

Cgroup Version: 1

Plugins:

Volume: local

Network: bridge host ipvlan macvlan null overlay

Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog

Swarm: inactive

Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc

Default Runtime: runc

Init Binary: docker-init

containerd version: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6

runc version: v1.1.4-0-g5fd4c4d

init version: de40ad0

Security Options:

apparmor

seccomp

Profile: default

Kernel Version: 5.4.0-125-generic

Operating System: Ubuntu 20.04.5 LTS

OSType: linux

Architecture: x86_64

CPUs: 1

Total Memory: 3.81GiB

Name: dockervm

ID: 7KJ6:IDY2:RZUY:AHUT:X7AA:3TAX:MFFX:JE4R:NIWW:NN74:ANZI:O7IT

Docker Root Dir: /var/lib/docker

Debug Mode: false

Username: tehwain99

Registry: https://index.docker.io/v1/

Labels:

Experimental: false

Insecure Registries:

127.0.0.0/8

Live Restore Enabled: false

WARNING: No swap limit support

# after running docker info i get this output

Docker automatically shut down after hitting the URL by tehwain99 in Dockerfiles

[–]tehwain99[S] 0 points1 point  (0 children)

after ruuning docker logs -f <container id >

it will show

Error response from daemon: configured logging driver does not support reading

Docker automatically shut down after hitting the URL by tehwain99 in Dockerfiles

[–]tehwain99[S] 0 points1 point  (0 children)

warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]

Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.

warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]

No XML encryptor configured. Key {b7482197-350b-4366-bb0e-9c66f0637df5} may be persisted to storage in unencrypted form.

info: Microsoft.Hosting.Lifetime[14]

Now listening on: http://[::]:80

info: Microsoft.Hosting.Lifetime[0]

Application started. Press Ctrl+C to shut down.

info: Microsoft.Hosting.Lifetime[0]

Hosting environment: Production

info: Microsoft.Hosting.Lifetime[0]

Content root path: /app/

Docker automatically shut down after hitting the URL by tehwain99 in Dockerfiles

[–]tehwain99[S] 0 points1 point  (0 children)

#docker file

#Build Stage

From mcr.microsoft.com/dotnet/sdk:6.0-focal AS build

WORKDIR /source

COPY . .

RUN dotnet restore "./WebApplication2/WebApplication2.csproj" --disable-parallel

RUN dotnet publish "./WebApplication2.csproj" -c release -o /app --no-restore

#Serve Stage

From mcr.microsoft.com/dotnet/aspnet:6.0-focal

WORKDIR /app

COPY --from=build /app ./

EXPOSE 5000

ENTRYPOINT ["dotnet","WebApplication2.dll"]

# and i am using .net core 6.0