Testing container

Discussion in 'Docker and Containers' started by VlaKl, May 13, 2019.

  1. VlaKl

    VlaKl New Member

    Joined:
    Apr 26, 2019
    Messages:
    18
    Likes Received:
    0
    Hi, everybody.

    I want to do a thing in the container.

    But in order not to break anything I want to make a backup and make a copy of the container. On it to try and make the combat container.

    Is it right to do so:

    1) back Up Docker container:

    docker commit -p 78727078a04 backup_war_docker_container1:13052019
    docker save -o backup_war_docker_container.tar var_container
    2) Run the container from the image created in step 2:

    docker run -it IMAGE ID /bin/bash
    3) If on combat container something not so, then recover:

    docker load -i backup_war_docker_container.tar
     
    #1
  2. gigatexal

    gigatexal I'm here to learn

    Joined:
    Nov 25, 2012
    Messages:
    2,676
    Likes Received:
    493
    Hah I like the combat premise of this
     
    #2
  3. VlaKl

    VlaKl New Member

    Joined:
    Apr 26, 2019
    Messages:
    18
    Likes Received:
    0
    Thanks. Topic closed.
     
    #3
Similar Threads: Testing container
Forum Title Date
Docker and Containers cpuset-cpus to Constrain Docker Containers Nov 4, 2017
Docker and Containers Best way to stop all docker containers on a host Oct 11, 2017
Docker and Containers Docker on different platforms, running containers differently? Jun 27, 2017
Docker and Containers VMware Integrated Containers Jun 16, 2017
Docker and Containers Docker pause / unpause groups of containers based on Image May 24, 2017

Share This Page