我无法让我的.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,但是无论在别名中保存什么命令,终端都会显示相同的"未找到"消息.有谁知道我还能尝试什么?
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 --rm -it -p 8080:80 furkaandogan/myapp:0.1
Run Code Online (Sandbox Code Playgroud)
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)