Instead of `Rclone <https://cloud.garr.it/support/kb/openstack/rclone_quick_tutorial/>`_, we can use s3 APIs to connect to object storage and mount containers as filesystems. We may do this by using `s3fs <https://github.com/s3fs-fuse/s3fs-fuse>`_
Install s3fs
***************
On Ubuntu machine, you can install the packaged version with the following commands::
$ sudo apt update
$ sudo apt install s3fs
Check the version::
$ s3fs --version
N.B. These instructions refer to version 1.86 available on Ubuntu 20.04. Different versions may require different configuration.
Decomment *user_allow_other* option by removing the *#*::
$ nano /etc/fuse.conf
Create application credential
*****************************
Create and download an `application credential <https://cloud.garr.it/compute/app-credential/>`_ from openstack dashboard as *app-credentials.sh*.
Now your container has been mounted on *test_dir* directory. You can access it and every change you make inside the directory is istantly made inside the container.
Debug
*****
If you need to debug, add the following options at the mounting command::
-o dbglevel=info -f -o curldbg
*Note that -f option cause the command to run in foreground, so CTRL+C will kill the command.*