zoukankan      html  css  js  c++  java
  • 1、Docker 打包本地镜像

    1、tar 打包系统本地镜像

    tar -cvpf /opt/system.tar --directory=/ --exclude=proc --exclude=sys --exclude=dev --exclude=run /

    2、docker import 导入镜像

    docker import system.tar

    3、修改tag标签

    docker tag [ID] centos:7
    docker images

    4、启动容器

    docker run -di [ID] /bin/bash

    5、进入容器

    docker exec -it [ID] bash
  • 相关阅读:
    HDU 3537
    POJ 1175
    POJ 1021 人品题
    POJ 2068
    POJ 2608
    POJ 2960
    poj 1635
    ustc 1117
    ural 1468
    数字游戏
  • 原文地址:https://www.cnblogs.com/whxiao/p/13272064.html
Copyright © 2011-2022 走看看