-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Change Docker ENV behavior #407
Conversation
- Docker ENV variables now work the same way in production, dev, and test - Docker ENV variables are *ignored* if docker.endpoint is present in the Nomad config file - Remote tests now work correctly
… to the daemon fails; we simply assume docker isn't there.
@@ -147,7 +172,7 @@ func TestDockerDriver_Start_Wait(t *testing.T) { | |||
} | |||
|
|||
func TestDockerDriver_Start_Wait_AllocDir(t *testing.T) { | |||
if !dockerLocated() { | |||
if !dockerIsConnected() || dockerIsRemote() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need the || dockerIsRemote()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test fails with a remote docker host because the alloc dir cannot be mounted into the remote daemon.
Since remote docker is only supported for dev/test I think the skip is OK here.
LGTM |
Ah I see now why you can't just skip in |
LGTM |
Signed-off-by: Alwin Doss <[email protected]>
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Fixes #295