-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Jenkins Docker Slaves on Amazon Linux 2 AMI #820
Comments
@pjdarton thanks for your help! But this seems to have the same result upon launching a container. I've updated the Anything I can do to better debug this? Full Log:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm running into a strange issue using the standard docker images provided by Jenkins - only when Jenkins is running on Amazon Linux 2 though. Jenkins on Ubuntu 18.04 works fine.
The problem is that Jenkins is not able to launch these slave containers.
Connect method - "Attach Docker Container" since the docker engine is running locally on the Jenkins server.
Interestingly, I've been able to get these containers to successfully run for a build on Amazon Linux if I set USER root in a new DockerFile (not required on Ubuntu). However, I need these to be running as a non-root user (like jenkins user) in order to run unit testing for postgres.
Any thoughts on how I can achieve that for Amazon Linux 2? Could I be missing a docker setting or security setting on the OS?
Docker images I've tested:
If you are sure that this plugin is the source of your troubles then please report:
The errors aren't super helpful:
Connecting to docker container 4486c8f2696f40c7de32160d78d6e2438abb1ff92517c71cf66b93baf3d0877f, running command java -jar /home/jenkins/remoting-4.6.jar -noReconnect -noKeepAlive -slaveLog /home/jenkins/agent.log HTTP/1.1 101 UPGRADED Content-Type: application/vnd.docker.raw-stream Connection: Upgrade Upgrade: tcp Api-Version: 1.40 Docker-Experimental: false Ostype: linux Server: Docker/19.03.13-ce (Linux)
ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
Basic Setup to Reproduce:
Docker Template:
The text was updated successfully, but these errors were encountered: