Tag: hdf5

Docker链接到构build的现有容器或图像

我正在尝试使用2个Dockerfiles将app分隔成app图像和database图像。 两者都使用FROM debian:jessie作为基础映像。 我遇到的问题是app映像中的某些包需要知道构build时的数据库位置。 有没有办法将生成命令链接到现有的图像或容器? 细节 我的database映像是我已经成功构build的HDF5数据存储。 我的app图像是一个Python 3.5映像,它安装了用于处理HDF5包。 我正在build立的错误是: Step 15 : RUN pip install tables —> Running in 9ea6d6b53a19 Collecting tables Downloading tables-3.2.2.tar.gz (7.0MB) Complete output from command python setup.py egg_info: /usr/bin/ld: cannot find -lhdf5 collect2: error: ld returned 1 exit status * Using Python 3.5.1 (default, Jan 13 2016, 18:51:24) * USE_PKGCONFIG: […]

pandasto_hdf函数得到非法指令

这似乎是一个OS X 10.10和docker特定的错误。 当我尝试 import pandas as pd df = pd.DataFrame([[1,2,3], [2,3,4]], columns=['a', 'b', 'c']) df.to_hdf( 'test.h5', 'sites', data_columns=True, format='t', complevel=5, complib='blosc' ) 我收到错误/消息Illegal instruction 。 但是,我直接在OS X中尝试了相同的代码,并在CoreOS中使用相同的docker容器。 他们都工作。 谁能帮我这个?