Docker installation Jenkins mirror

After entering the container through the mirror mounting jenkins and can not execute the command dotnet --info

 

 If To use dotnet command in the container need to make your own jenkins Dockerfile file

 

 

docker build -t jenkinsnetcore. create the mirror. The current directory

docker-compose.yml file

image name

 

init.sh file

 

 

After the execution sh init.sh created a mirror

docker-compose up -d

Jenkins into the container you can use the command dotnet

 

Use jenkins installation can not be executed directly dotnet command does not exist in the host

 

Guess you like

Origin www.cnblogs.com/zxcnn/p/11703647.html