Tag: jenkins

docker error when called from network

to deploy our system, we use a docker-compose.yml file. It works fine on local and remote machines working through SSH, and machines deploys correctly. The problem is when docker is launched from jenkins machine on the a slave machine, I get this error: Couldn’t connect to Docker daemon at http+docker://localunixsocket – is it running? If […]

How can I solve the deployment/updating of dockerized app on my VPS?

Not easy to make good title for this question so if someone have better idea please edit. That’s what I have: VPS (KVM) Docker Nginx-proxy so all docker containers supposed to be exposed are automatically exposed to appropriate domain. Some apps like WordPress are just using container with connected volumes which are accesible by FTP […]

How to access docker daemon from container with other user than root

I’m trying to run a Jenkins container that builds docker images. I’ve started last week with docker and I’m a bit confused with the use of volumes from host and how users are handled. I’ve been searching on internet and I’ve found a git issue were someone posted a solution to have access to the […]

Docker compose and concurrent integration testing

Edit: sorry, I was mistaken about the first part of this question. So I have a docker-compose.yaml that’s working fine when ran synchronously: server: build: . dockerfile: “./docker/integration_tests/server/Dockerfile” links: – mongo environment: – “MONGO_URI=mongodb://mongo:27017/company” mongo: image: ‘mongo:3.2.6’ ports: – “27017” When launched with this command: docker-compose build && docker-compose up –abort-on-container-exit However when I launch […]

Jenkins on GCE not building

I’m trying to get my head around Jenkins CD and k8s on GCE. I’m following the tutorial on GCE: https://cloud.google.com/solutions/continuous-delivery-jenkins-container-engine For some reason the app won’t build: This is the Jenkins console output. This is my Jenkins file: node { def project = ‘xxxxxx’ def appName = ‘gceme’ def feSvcName = “${appName}-frontend” def imageTag = […]

Files not visible to Jenkins running in Docker

I have created a very basic Dockerfile which wraps the official Jenkins Docker image. I am running an instance of my image and have come across the following problem: I start and instance of my image and create a file in my instance in the /tmp directory(any directory will work) called tmp.txt. I go to […]

Kubernetes Jenkins swap space issue

Jenkins is failing to build due to “Free Swap Space” being 0. I don’t know how to fix that. The build process keeps hanging. Here part of the output: When I ssh into the instance and docker info I get a WARNING: No swap limit support.

How one should use jenkinsci/jnlp-slave for complex builds?

I am struggling with jenkinsci/jnlp-slave docker image and ECS Plugin https://wiki.jenkins-ci.org/display/JENKINS/Amazon+EC2+Container+Service+Plugin I am using complex docker containers (based on CentOS) for the builds. It works perfectly on local docker, but I want to try ECS and plugin above. If I add “FROM jenkinsci/jnlp-slave” at the end of my big Dockerfile, it breaks the whole environment, […]

Unix protocol not supported – Docker Plugin Version – 0.16.2

When I try to connect my Jenkins to docker using docker plugin’s latest version , it does not connect ! ERROR – “org.apache.http.conn.UnsupportedSchemeException: unix protocol is not supported (show details)” using unix:///var/run/docker.sock command (as provided in their help tag – shocked to see that) ! But this doesn’t happen when I downgrade the version to […]

How can I create a Jenkins Docker image that uses provided ssh keys for jenkins user?

While I create an image based on official Jenkins Docker and copy .ssh directory to jenkins user’s home (/var/jenkins_home), owner of the /var/jenkins_home/.ssh becomes root which prevents me to open ssh session with jenkins user. Using RUN chown -R 1000:1000 /var/jenkins_home/.ssh in Dockerfile does not work. Also, permissions of the files copied while creating image […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.