Skip to content

Conversation

@thaJeztah
Copy link
Member

- What I did
Handle error when parsing an invalid volume spec.

This was discovered when analyzing issue reported by @trungutt where
docker run -v $empty_var:/vol alpine would result in anonymous volume being mounted at /vol.

- How I did it

- How to verify it
CI tests:
unit: TestParseVolumeWithEmptySource
e2e: TestCreateWithEmptySourceVolume
e2e: TestCreateWithEmptyVolumeSpec

- Description for the changelog

  • Fix container being created with unexpected volume configuration when volume specification can't be parsed correctly

- A picture of a cute animal (not mandatory but encouraged)

(cherry picked from commit fe7afb7)

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit fe7afb7)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-commenter
Copy link

codecov-commenter commented Jul 14, 2023

Codecov Report

Merging #4423 (bfe2ff8) into 24.0 (380eb72) will increase coverage by 0.36%.
The diff coverage is 25.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             24.0    #4423      +/-   ##
==========================================
+ Coverage   58.92%   59.28%   +0.36%     
==========================================
  Files         286      288       +2     
  Lines       24797    24806       +9     
==========================================
+ Hits        14611    14706      +95     
+ Misses       9301     9213      -88     
- Partials      885      887       +2     

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants