A simple Dockerfile with latest Alpine image and additional software (bash, neofetch), which saves neofetch output into '/neofetch'
Howto:
- Clone the repo to the local
- from the local directory with the Dockerfile, build the image: docker build -t <image_name:tag> .
- check that the image exists: docker images
- run the container using the image which was created (in interractive mode and as a daemon): docker run -it -d <image_name:tag>
- check that the container exists and up and running: docker ps
- to access the container and check the /neofetch file run: docker exec -it <container_id_which_could_be_found_via_docker_ps_cmd> /bin/bash
- the container shell session should be opened in the terminal. Files and directories list should consist this: ls -al
cat /neofetch 8. to exit the container Shell Environment type 'exit'