Skip to main content

All Questions

Tagged with
1 vote
0 answers
76 views

PowerShell Exchange Commands Not Working in Docker on Linux for Exchange On-Premises 2007

I am currently developing a REST API that needs to interact with an on-premises Microsoft Exchange server (Exchange 2007, not Office 365) through PowerShell commands. In my development environment (...
Juan Luis Martos's user avatar
1 vote
2 answers
238 views

Installing exe inside Windows container using PowerShell

I am facing problem with installation of .exe file inside docker container: FROM mcr.microsoft.com/dotnet/sdk:7.0 AS base SHELL ["pwsh", "-Command", "$ErrorActionPreference = '...
Julia's user avatar
  • 25
0 votes
1 answer
70 views

Powershell Stop Parsing and docker

I have a Powershell script that powers Docker. With the new core version of Powershell (7.3) there is a breaking change: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/...
Ethan Schofer's user avatar
1 vote
0 answers
759 views

Having issues running pwsh shell in GitHub Actions with nektos/act locally

I'm super green to docker and looking for some troubleshooting direction for working with https://github.com/nektos/act. I am able to successfully point to a workflow and run it and everything seems ...
jschleicher's user avatar
1 vote
0 answers
305 views

Powershell: Issue redirecting output from error stream when using docker

I am working on a set of build scripts which are called from a ubuntu hosted CI environment. The powershell build script calls jest via react-scripts via npm. Unfortunately jest doesn't use stderr ...
chris's user avatar
  • 81
0 votes
1 answer
237 views

Tree.com substitute for PowerShell Core running in Linux Docker containers?

I am using PowerShell as my shell in developer Docker containers, as I am much more versatile with PowerShell than I am with Bash. However, I miss having Tree.com from my Windows use of PowerShell ...
Tolga's user avatar
  • 3,765
0 votes
1 answer
3k views

How to install PowerShell Core on top of a SQL Server docker image?

I want to be able to run some interactive commands inside a SQL Server Docker instance. Since I not familiar with bash and I have some PowerShell knowledge I would use PowerShell Core. How to install ...
Alexei - check Codidact's user avatar
0 votes
1 answer
1k views

Import-module not finding container installed modules

In Jenkins when I run a pipeline and attempt to use the modules in the container I'm getting modules not found as below: I'm using a "Powershell" build step. When I run the container ...
Nigel Tatschner's user avatar
5 votes
1 answer
9k views

How to execute ps1 script using docker run command?

I need to use the official PowerShell Core Docker image to run a Docker container and make it execute a PowerShell script file. I know it can be done using a Dockerfile and Docker build, but can't ...
robliv's user avatar
  • 1,541
3 votes
1 answer
3k views

Local New-PSSession fails in official powershell linux based docker images

Running powershell core using docker (official microsoft images), I am trying to set up a local session in my script so I can later execute code in that session. I have tried using the following ...
Yarden Sade's user avatar
3 votes
0 answers
455 views

Import-Module not working from inside docker container (Linux)

From inside my docker file, I'm running a powershell script named ci.ps1 which tries to load a module but fails. Let's suppose in my source directory I have this module : src/packages/tools/...
user3574857's user avatar
3 votes
2 answers
3k views

How to create a docker image from dotnet core 2.2 and powershell core?

I'm trying to "dockerize" a dotnet standard library, for now I'm using a simple docker file, to build and pack it using just dotnet cli commands. # Build stage FROM microsoft/dotnet:2.2-sdk as build ...
user3574857's user avatar
0 votes
2 answers
945 views

Remotely backup SQL Server Docker container Using Powershell

I have a SQL Server on a docker container (microsoft/mssql-server-linux) I want to Backup the database remotely using Powershell command. So The final result will be that a .bak file would be added ...
Dan The Man's user avatar
  • 1,895
1 vote
1 answer
619 views

Is it possible to run PowerShell Core in a Linux dotnet container?

I can see there is no Powershell present in microsoft/dotnet: C:\> docker run -it microsoft/dotnet:2.1-sdk bash root@5397dac12c1e:/# pwsh bash: pwsh: command not found When I try to add it in the ...
Lukáš Lánský's user avatar
2 votes
1 answer
1k views

PowerShell Core in Debian Docker Container Error

I'm new to Docker and am trying to create a Docker image with Raspbian base and PowerShell Core installed. EDIT: Updated Dockerfile to include libicu52 package, which resolved the main error: lack of ...
Eeshwar's user avatar
  • 83