The Docker environment is structured within a Client/Server approach. This aim is to replicate Docker running on a remote server.
As such, certain things that you might be different, such as mounting volumes as they would be mounted on the server, instead of the client.
docker run -it -v /data:/data ubuntu "echo hello > /data/test" would not create a file in
You can access the server via SSH, allowing you to see the data created from the container. For example
ssh [email protected] "ls /data/".
If you want to run Docker as a single node with the client/server being on the same instance, then we recommend you use the Katacoda Ubuntu environment.