github.com/rita33cool1/iot-system-gateway@v0.0.0-20200911033302-e65bde238cc5/docker-engine/README.md (about)

     1  This docker-engine is modified from [Moby](https://github.com/moby/moby) project
     2  
     3  1. You need to modify layer/layer_store.go line 440 to your own path
     4  2. Start the original docker engine
     5  ```
     6  sudo /etc/init.d/docker start
     7  ```
     8  3. Build compile environment
     9  ```
    10  make build
    11  ```
    12  4. Compile the new docker engine
    13  ```
    14  make binary
    15  ```
    16  5. Stop the original docker engine
    17  ```
    18  sudo /etc/init.d/docker stop
    19  ```
    20  6.start the new docker engine
    21  ```
    22  sudo bundles/binary-daemon/dockerd
    23  ```
    24  7. try if can delete the top layer of image
    25  ```
    26  docker rmi <image:tag>
    27  ```
    28  
    29  8. you can modify the num of layer you want to delete. 
    30   Simply modify the num in "delete_layer_num"