Could not connect to Ryuk at 172.17.0.1:xxxx #6584
                  
                    
                      jelbatnigi
                    
                  
                
                  started this conversation in
                General
              
            Replies: 1 comment 3 replies
-
| Hey @jelbatnigi, did you figure this out? I'm having the same problem. | 
Beta Was this translation helpful? Give feedback.
                  
                    3 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I can't get a straight solution to this problem. Hopefully someone here can help out .
I have a integrationTest in spring boot application I am running a postgres database testcontainer
@Container public static PostgreSQLContainer container = new PostgreSQLContainer(DB_TEST_CONTAINER_NAME).withDatabaseName(DB_TEST_CONTAINER_DB_NAME) .withUsername(DB_TEST_CONTAINER_USER).withPassword(DB_TEST_CONTAINER_PASSWORD);When I run my integrationTest from my desktop in runs fine.
When I run it from my jenkins box as part of my build
./gradlew buildI get the following error
java.lang.IllegalStateException: Could not connect to Ryuk at 172.17.0.1:49158The test container is trying to run inside a jenkins env which is also running as a container in an EC2 instance. The jenkins container is running with
-v /var/run/docker.sock:/var/run/docker.sockI don't know why the Ryuk container cannot run inside a jenkins docker container. Any Docker configuration I have to do here?
Beta Was this translation helpful? Give feedback.
All reactions