docker
docker copied to clipboard
Support digest image format like `repo/image@sha256:xxxx...`
Cookbook version
4.9.0
Chef-client version
14.9.13
Platform Details
Ubuntu 18.04
Scenario:
I would like to specify a docker_container resource to an immutable digest in sha256:c6a... format instead of using a mutable docker tag.
Steps to Reproduce:
This docker resource produces the problem:
docker_container 'sad' do
repo 'hello-world'
tag 'sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788'
end
Expected Result:
I expect docker to use my digest correctly and download and use the image with that digest from the registry
Actual Result:
Specifying tag 'sha256:....' results in a docker error invalid reference format
Hey There It looks like this is the first issue you've filed against the chef-cookbooks project. I'm here to offer you a bit of extra help to make sure we can quickly get back to you. Make sure you've filled out all the fields in our issue template. Make sure you've provided us with the version of chef-client you're running, your operating system and the version of the cookbook. If you're not using the most up to date version of the cookbook then please make sure to update first. Lots of things change between versions even if you're issue isn't listed in the changelog. Finally please give us a detailed description of the issue you're having. The more we know about what you're trying to do, what actually happens, and how you can reproduce the problem, the better.
If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution.