Git Product home page Git Product logo

d2p-migrator's Introduction

d2p-migrator

Go Report Card

d2p-migrator is a system tool for ops to migrate containers from docker world to pouchcontainer world.

Scenaris

PouchContainer has a lot of advanced features towards Docker. Under some circumstance, when upgrading dockerd to pouchd, the legacy containers cannot be removed. These containers must be running in place. As a result, it is an essential functionality to migrate legacy containers to those which are managed by pouchcontainer.

Migrate Steps

We assume that dockerd is running with controlling containerd 0.2.3 in environment. Docker has not supported containerd 1.0.0+ yet, so image management is not in the scope of docker. While PouchContainer takes advantanges of containerd 1.0.0+ to manage containers and images. Migration containers from docker's management to pouchd must take both image and container into consideration. Here are the steps to accomplish a migration job.

Step 1 - Install containerd 1.0.3 independently

Step 2 - Pull Images via ctr

Step 3 - Prepare snapshotters with containerd's API

Step 4 - Setting QuotaID to UpperDir/MergedDir

Step 5 - Stop all containers and dockerd

Step 6 - Move legacy content from old_upperdir/* to new-upperdir/

Step 7 - Convert old container's metadata in dockerd to new's in pouchd

Step 8 - Stop running containerd 1.0.3

Step 9 - Install PouchContainer with rpm including containerd 1.0.3

Step 10 - Start all containers in pouchd

To be continued

d2p-migrator's People

Contributors

allencloud avatar husterwan avatar zhuangqh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.