How-to: Add Derived Containers
To add a derived container with the name “my_container”, perform the following steps:
- To add a derived container with the name “
my_container”, perform the following steps:csle/emulation-system/derived_images/Listing 159: Directory with derived Docker images.
- Add a Dockerfile inside the directory:
csle/emulation-system/derived_images/my_container/Listing 160: Directory with the Dockerfile for a derived Docker image with the name `my_container`.
- Add build and push instructions to the following Makefile:
csle/emulation-system/derived_images/MakefileListing 161: Makefile for derived Docker images.
- Update the following README file:
csle/emulation-system/derived_images/README.mdListing 162: README file for derived Docker images.
- Build and push the image to DockerHub by running the commands:
cd csle/emulation-system/derived_images; make my_container cd csle/emulation-system/derived_images; make push_my_containerListing 163: Commands to build and push the derived Docker image `my_container` to DockerHub.