Shouldn't --datadir influence where the history file goes?
root@508700517ebc:/# geth --datadir /data attach ipc:/data/geth.ipc
unable to open history file: open /root/.ethereum/history: no such file or directory
(The "unable to open history file" error message also gets printed to stdout.)
--Tom