diff --git a/docker/lmk.devuan-chimaera.sh b/docker/lmk.devuan-chimaera.sh index 6f4e2b5..6c1a5db 100755 --- a/docker/lmk.devuan-chimaera.sh +++ b/docker/lmk.devuan-chimaera.sh @@ -103,64 +103,6 @@ else echo "* The container will be built using the existing docker image $library_image" fi -cat <) - # You must use the container name (as determined using the "ps" subcommand), not the image name. - - sudo docker container run -it $library_image /bin/bash - # ^ Run an interactive terminal (Type 'exit' to exit) - # (based on ) - - sudo docker commit $container_Id $server_finetest_image - sudo docker container run --name tmp_test_im -it $server_finetest_image /bin/bash - # ^ Transform the container into an image and inspect the internals manually - # (based on ). - # Then: sudo docker rm --force tmp_test_im - - sudo docker attach $container_name - # ^ Attach your current terminal to a running container (See - # ). - - sudo docker rm --force $container_name - # ^ Delete a container by its name. - # --force: kill and delete running containers as well. - -END - # sudo docker container run -d --name $library_image unzip xvf $contained_arc -C $contained_repos container_Id=`sudo docker ps -aqf "name=$container_name"` # ^ ONLY works with container_name not library_image @@ -272,6 +214,66 @@ echo # fi # ^ Build the server as a separate step instead (see further up) + +cat <) + # You must use the container name (as determined using the "ps" subcommand), not the image name. + + sudo docker container run -it $library_image /bin/bash + # ^ Run an interactive terminal (Type 'exit' to exit) + # (based on ) + + sudo docker commit $container_Id $server_finetest_image + sudo docker container run --name tmp_test_im -it $server_finetest_image /bin/bash + # ^ Transform the container into an image and inspect the internals manually + # (based on ). + # Then: sudo docker rm --force tmp_test_im + + sudo docker attach $container_name + # ^ Attach your current terminal to a running container (See + # ). + + sudo docker rm --force $container_name + # ^ Delete a container by its name. + # --force: kill and delete running containers as well. + +END + + # How to use docker-compose (See ): # "1. Define your app’s environment with a Dockerfile so it can be reproduced anywhere." # "2. Define the services that make up your app in docker-compose.yml so they can be run together in an isolated environment."