【发布时间】:2018-04-01 14:31:39
【问题描述】:
我是 Docker 新手,正在尝试创建一个安装了 Raspbian 基础和 PowerShell Core 的 Docker 映像。
编辑: 更新 Dockerfile 以包含 libicu52 包,这解决了主要错误:缺少 libpsl-native 或依赖项不可用。更改了CMD 参数,现在出现了不同的错误。
这是我的 Dockerfile:
# Download the latest RPi3 Debian image
FROM resin/raspberrypi3-debian:latest
# Update the image and install prerequisites
RUN apt-get update && apt-get install -y \
wget \
libicu52 \
libunwind8 \
&& apt-get clean
# Grab the latest tar.gz
RUN wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-rc.2/powershell-6.0.0-rc.2-linux-arm32.tar.gz
# Make folder to put PowerShell
RUN mkdir ~/powershell
# Unpack the tar.gz file
RUN tar -xvf ./powershell-6.0.0-rc.2-linux-arm32.tar.gz -C ~/powershell
# Run PowerShell
CMD pwsh -v
新错误:
hostname: you must be root to change the host name
/bin/sh: 1: pwsh: not found
如何解决这些错误?
提前致谢!
【问题讨论】:
标签: powershell docker debian dockerfile powershell-core