Skip to content

Commit

Permalink
atomic migrate: Add support for docker 1.10
Browse files Browse the repository at this point in the history
Signed-off-by: Shishir Mahajan <[email protected]>
  • Loading branch information
Shishir Mahajan committed Feb 2, 2016
1 parent 43bebd5 commit 299fe3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ container_import(){
oldStorageDriver=$(sed -n '1p' $importPath/info.txt)||exit 1
newStorageDriver=$(docker info|grep "Storage Driver"|cut -d" " -f 3)

sed -i "s|\"Driver\":\"$oldStorageDriver\"|\"Driver\":\"$newStorageDriver\"|g" config.json
sed -i "s|$oldDockerRootDir/containers/$oldNotruncContainerID|$dockerRootDir/containers/$oldNotruncContainerID|g" config.json
sed -i "s|\"Driver\":\"$oldStorageDriver\"|\"Driver\":\"$newStorageDriver\"|g" config.v2.json
sed -i "s|$oldDockerRootDir/containers/$oldNotruncContainerID|$dockerRootDir/containers/$oldNotruncContainerID|g" config.v2.json

cd $dockerRootDir
find . -name "*$newNotruncContainerID*" -type d -exec rename $newNotruncContainerID $oldNotruncContainerID {} +
Expand Down

0 comments on commit 299fe3b

Please sign in to comment.