Skip to content

date --date "10 days" not working in docker image mcr.microsoft.com/azure-cli #19863

@hemant-bhosale

Description

@hemant-bhosale

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
date command is not working when we create the base docker image from mcr.microsoft.com/azure-cli
command: date --date "10 days"
it throws error invalid date 10 days

Dockerfile

FROM mcr.microsoft.com/azure-cli
RUN date --date "10 days"

To Reproduce
Create dockerfile as below and then build it

FROM mcr.microsoft.com/azure-cli
RUN date --date "10 days"

Expected behavior
should display the output with date 10 days later that current date

Environment summary
Docker image

Additional context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions