-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Open
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
With this Dockerfile
we can reproduce the issue:
FROM docker.io/library/photon:5.0
SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
# Install required system packages and dependencies
RUN tdnf install -y ca-certificates curl findutils gzip icu lttng-ust openssh-clients tar which
RUN mkdir -p /app \
mkdir -p /opt/powershell/bin \
mkdir -p /tmp/pkg/cache/ ; cd /tmp/pkg/cache/ || exit 1 ; \
curl -SsLf "https://github.com/PowerShell/PowerShell/releases/download/v7.5.2/powershell-7.5.2-linux-arm64.tar.gz" -O ; \
tar -zxf "powershell-7.5.2-linux-arm64.tar.gz" -C /opt/powershell/bin --no-same-owner ; \
chmod +x "/opt/powershell/bin/pwsh" ; \
rm -rf "powershell-7.5.2-linux-arm64.tar.gz"
RUN tdnf upgrade --exclude=filesystem -y && \
tdnf clean all && rm -rf /var/cache/tdnf
ENV PATH="/opt/powershell/bin:$PATH" \
PS_INSTALL_FOLDER="/opt/powershell/bin"
WORKDIR /app
ENTRYPOINT [ "/opt/powershell/bin/pwsh" ]
$ docker build . --no-cache -t photon/powershell
[+] Building 34.6s (9/9) FINISHED docker:desktop-linux
...
=> => unpacking to docker.io/photon/powershell:latest
$ docker run --rm -it photon/powershell
PowerShell 7.5.2
PS /app>
Expected behavior
$ docker run --rm -it photon/powershell
PowerShell 7.5.2
PS /app> exit
$
Actual behavior
$ docker run --rm -it photon/powershell
PowerShell 7.5.2
PS /app> eexexiexit
Error details
Environment data
$ docker run --rm -it photon/powershell
PowerShell 7.5.2
PS /app> $$P$PS$PSV$PSVe$PSVer$PSVers$PSVersi$PSVersio$PSVersion$PSVersionT$PSVersionTa$PSVersionTab$PSVersionTabl$PSVersionTable
Name Value
---- -----
PSVersion 7.5.2
PSEdition Core
GitCommitId 7.5.2
OS VMware Photon OS/Linux
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals

Metadata
Metadata
Assignees
Labels
Needs-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.