8
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

OpenVzからdockerへのデータ移行が簡単だった

Last updated at Posted at 2015-02-06

ファイルを固めたらdockerでそのまま動いた。

vzctl stop 255

cd /var/lib/vz/private
tar cf 255.tar -C 255 .
xz -v 255.tar
cat 255.tar.xz | docker import - tukiyo3/openvz255

docker run -it --net=host -d tukiyo3/openvz255 /sbin/init
docker exec -it <コンテナID> /bin/bash

普通に動いて驚いた

8
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?