Sign inSign up

sabryr/nris-training-path-test

By sabryr

•Updated over 1 year ago

For training purposes at nris.no

Image
0

303

sabryr/nris-training-path-test repository overview

⁠NRIS container training

⁠Available scripts

The container has two main python applications and bash wrappers for them to demonstrate how containers access to host file system.

  1. access-check
  2. access-list

⁠1. access-check

  • This is the default application
  • This will print some details about the container and the home directory as it see it
  • If one or more files (absolute paths) are provided as arguments, the script with check if they car accessible from the container
  • example
$: docker run --name access-check sabryr/nris-training-path-test 
Unable to find image 'sabryr/nris-training-path-test:latest' locally
latest: Pulling from sabryr/nris-training-path-test
155ad54a8b28: Already exists 
...
5e9ad5aa09b4: Already exists 
717505a0fdb9: Pull complete 
...
Digest: sha256:2085659edf2ae31d210120b185b78a2a060b54fc6530eef9aa38da554a49d373
Status: Downloaded newer image for sabryr/nris-training-path-test:latest
Operating System is Linux #17~24.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 20 22:48:29 UTC 2 release:6.11.0-17-generic
Python Version is   3.13.2 (main, Feb 25 2025, 05:25:21) [GCC 12.2.0]
Home directory is   /user1
Current working directory  /user1  
Files to check (provided as arguments): 
        No file provided 

⁠2. access-list

This application prints the mounts points as the container see them

$: docker exec <container_id_or_name> access-list

Tag summary

Content type

Image

Digest

sha256:2085659ed…

Size

364.1 MB

Last updated

over 1 year ago

docker pull sabryr/nris-training-path-test