How to configure a dockerfile and docker-compose for Jenkins -


im absolutely new in docker , jenkins well. have question configuration of dockerfile , docker-compose.yml file. tried use easiest configuration able set-up these files correctly. building , pushing done correctly, jenkins application not running on localhost (127.0.0.1).

if understand correctly, should default running on port 50000 (arg agent_port=50000 in jenkins "official" dockerfile). tried use 50000, 8080 , 80 well, nothing working. have advice, please? im using these files: https://github.com/fdolsky321/jenkins_docker

the second question is, whats best way handle crashes of container. lets say, if container crashes, want recreate new container same settings. best way create new shell file "crash.sh" , provide there information, want create new container same settings? mentioned in here: https://blog.codeship.com/ensuring-containers-are-always-running-with-dockers-restart-policy/

thank advice.

hyperv docker windows.

in case, must sure port-forward published port (like 5000).

open hyperv manager, , right-click on machine defined there: able add port-forwarding rules in order localhost:5000 access vm:5000.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -