相关疑难解决方法(0)

.bash_profile别名:找不到命令

我无法让我的.bash_profile别名在我的Mac OSX终端上运行.我在〜/目录中创建了一个.bash_profile文件,然后写了两行:

echo bash profile has loaded

alias prof=“open ~/.bash_profile”
Run Code Online (Sandbox Code Playgroud)

我保存并输入终端命令:

. ~/.bash_profile
Run Code Online (Sandbox Code Playgroud)

终端显示:

bash profile has loaded

-bash: alias: /Users/kennethlarose/.bash_profile”: not found
Run Code Online (Sandbox Code Playgroud)

我一直在阅读别名配置文件,我相信我的语法是有效的.我知道配置文件是源代码,因为它显示了echo,但是无论在别名中保存什么命令,终端都会显示相同的"未找到"消息.有谁知道我还能尝试什么?

macos bash alias .bash-profile

11
推荐指数
1
解决办法
1万
查看次数

dotnet docker /bin/sh: 1: [dotnet,: not found

I build successfully with dockerfile, but when I try to run a new container from the build image, I get the following error:

What do i have to do for the solution?

Error : /bin/sh: 1: [dotnet,: not found

docker run command:

docker run --rm -it -p 8080:80 furkaandogan/myapp:0.1
Run Code Online (Sandbox Code Playgroud)

Dockerfile:

FROM microsoft/aspnetcore:1.1
ARG source
WORKDIR /app
ENV ASPNETCORE_URLS http://*:80
EXPOSE 80
COPY ./publish/myapp .
ENTRYPOINT ["dotnet", "myapp.dll"]
Run Code Online (Sandbox Code Playgroud)

docker .net-core dockerfile

5
推荐指数
2
解决办法
8892
查看次数

标签 统计

.bash-profile ×1

.net-core ×1

alias ×1

bash ×1

docker ×1

dockerfile ×1

macos ×1