You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
ASYD/ASYD_Docker/docker-02/123deb/solution.md

13 lines
380 B

# on host, create named container
```docker run -it --name 123deb debian```
# in container, create file in /tmp
```echo "hallo ASYD" > /tmp/123.txt```
# ... and exit from container
```exit```
# find the file by name starting in /var/lib/docker/
```sudo find /var/lib/docker/ -name 123.txt```
# print the file contents
```sudo cat $(sudo find /var/lib/docker/ -name 123.txt)```