同步操作将从 openEuler/iSulad 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
If you intend to contribute on iSulad. Thanks for your effort. Every contribution is very appreciated for us.
If you use the openEuler distribution, you can easily install various dependent packages via yum.
$ sudo yum install -y cmake gcc-c++ systemd-devel yajl-devel libcurl libcurl-devel clibcni clibcni-devel protobuf-devel grpc-devel grpc-plugins http-parser-devel libwebsockets-devel libevhtp-devel libevent-devel lcr lxc-devel
Run the cmds under the iSulad source directory
$ sudo mkdir build
$ sudo cd build
$ sudo cmake ..
$ sudo make
$ sudo make install
You can try to use iSulad via Docker container. The following steps guide you how to create a Docker container which can run iSulad inside.
You can build iSulad
via a Linux-based Docker container. You can build an image from theDockerfile
in the source directory. From the iSulad source root directory you can run the following command to make your image.
$ sudo docker build --build-arg http_proxy=YOUR_HTTP_PROXY_IF_NEED
--build-arg https_proxy=YOUR_HTTPS_PROXY_IF_NEED \
-t YOUR_IMAGE_NAME -f ./Dockerfile .
Let's prepare a root directory on host, and we will mount this directory into the container. This directory be used by iSulad
in container.
$ sudo mkdir -p /var/lib/isulad
Let's suppose that you built an image called isulad:dev
.
Then from the iSulad source root directory you can run the following command:
$ sudo docker run -tid --name YOUR_CONTAINER_NAME -v /var/lib/isulad:/var/lib/isulad -v `pwd`:/src/isulad --privileged isulad:dev
Let's suppose that you run an container named iSulad_build
. Then you can use the following commands to build iSulad in your container iSulad_build
:
// enter the container
$ sudo docker exec -it iSulad_build bash
// Now you enter the container, so build iSulad in the container by following commands
# cd /src/isulad
# mkdir build
# cd build
# cmake ..
# make
# make install
Now You can use direct command to start iSulad
server in the container:
$ sudo isulad # run the server with default socket name and default log level and images manage function
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。