Had to rebuild w/ the latest Jenkins recently (Docker version 17.06.0-ce, build 02c1d87)
and when I run my containers via “docker compose up”, the port is not exposed to the OSX host for Docker Toolbox (aka docker-machine on VirtualBox).
I tried recreating the docker-machine as well w/ no luck.
And I confirmed that the service is running at 8080 on the first machine by shelling into it and curling “https://localhost:8080”
Has anyone seen this before? Puzzled after googling for this and trying to rebuild everything from scratch w/o luck
version: ‘2’
services:
jenkins:
image: blacklabelops/jenkins:alpine
container_name: jenkins
hostname: 172.18.0.2
#networks:
# - jenkinsnet
ports:
- “8090:8080”
volumes:
- jenkinsdata:/jenkins
- jenkinslogs:/var/log
env_file:
- jenkins-master.env
labels:
com.blacklabelops.description: “Jenkins Continuous Integration System”
com.blacklabelops.service: “jenkins-master”Jenkins Slave
slave:
image: kenyee/android-swarm-jdk8:latest
mem_limit: 4g
memswap_limit: 10g
#networks:
# - jenkinsnet
env_file:
- jenkins-slave.env
labels:
com.blacklabelops.description: “Jenkins Swarm JDK-8 Android Slave”
com.blacklabelops.service: “slave”
com.blacklabelops.applications: “java maven gradle android”
environment:
- ANDROID_HOME=/opt/android-sdk-linux