Azure / Azure/azure-cli

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

Open
#19,863 3 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-platform-engineering-squad feature-request Installation
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `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**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.