在Docker容器中运行时, # Create series for days in your dataframe
days_in_df = df['day'].value_counts()
# Create a dataframe with all days
start = '01/01/2019'
end = '01/31/2019'
all_days_df = pd.DataFrame(data={'datetime':pd.date_range(start='01/01/2019',periods=31,freq='d')})
all_days_df['all_days'] = all_days_df['datetime'].dt.day_name()
# Use that for value counts
all_days_count = all_days_df['all_days'].value_counts()
# We now merge them
result = pd.concat([all_days_count,days_in_df],axis=1,sort=True)
# Finnaly we can get the ration
result['day']/result['all_days']
失败。
vault -autocomplete-install
我尝试使用$ docker run --privileged -ti vault:latest -autocomplete-install
Error executing CLI: Did not find any shells to install
运行,但没有任何问题。我也尝试研究the source,但一切似乎都很好。
有什么主意吗?
答案 0 :(得分:1)
它丢失了USER
环境变量,并且在scanning for .bashrc etc. files时找不到主目录。可以使用
$ ( unset USER ; vault -autocomplete-install )
Error executing CLI: Did not find any shells to install
,并且类似地在docker中通过
进行了修复export USER=root
答案 1 :(得分:1)
我在开窗机上遇到了类似的问题,并且要解决此问题,我在CLI(Git bash)上按照以下步骤操作
1)cd〜{主目录}
2)触摸.bashrc {创建的.bashrc文件}
3)重新运行命令“ vault -autocomplete-install”,并且没有任何问题
以上解决方案对我有用
答案 2 :(得分:0)
这对我有用,在Dockerfile中
RUN touch $HOME/.bashrc \
&& vault -autocomplete-install