Unable to build a simple contract (failed to download 'zeroize')

Tried to run command:
docker run --rm -v "$(pwd)":/code --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry cosmwasm/rust-optimizer:0.10.3

and getting an error on building:

Building contract in /code
Downloading crates ...
error: failed to download zeroize v1.4.1

Caused by:
unable to get packages from source

Caused by:
failed to parse manifest at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/zeroize-1.4.1/Cargo.toml

Caused by:
feature resolver is required

Will be glad for any suggestions.
My environment:
rustc --version
rustc 1.53.0 (53cb7b09b 2021-06-17)
cargo --version
cargo 1.53.0 (4369396ce 2021-04-27)
rustup --version
rustup 1.24.3 (ce5817a94 2021-05-31)

Most likely your docker image has an older Rust version than your host OS.

resolver feature has been added in 1.51.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.