简体   繁体   English

Linux容器lxc-create

[英]Linux Containers lxc-create

I've been trying to work on Linux Containers (lxc). 我一直在尝试在Linux容器(lxc)上工作。 Post installation, I tried to create a container. 安装后,我尝试创建一个容器。 I'm working on Ubuntu 14.04, with lxc-1.1.1. 我正在使用lxc-1.1.1开发Ubuntu 14.04。 I'm prompted with this error when i try to create a new container : 当我尝试创建一个新的容器时,系统会提示我此错误:

lxc-create: error while loading shared libraries: liblxc.so.1: cannot open shared object file: no such file or directory. lxc-create:加载共享库时出错:liblxc.so.1:无法打开共享库文件:没有这样的文件或目录。 Any help in overcoming this problem is appreciated. 克服此问题的任何帮助表示赞赏。

You need to add /usr/local/lib to your LD_LIBRARY_PATH environment variable. 您需要将/ usr / local / lib添加到LD_LIBRARY_PATH环境变量。

Try export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib and then try lxc-create again. 尝试export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ,然后再次尝试lxc-create

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM