How to mount object storage container as file system (Linux)?

If you want to create new Object Storage container you may check following guide:

To mount your Object Storage container as file system do following steps:

For Ubuntu:

$ sudo add-apt-repository ppa:gophers/archive && sudo apt-get update && sudo apt-get install golang-1.10-go

$ echo "export PATH=$PATH:/usr/lib/go-1.10/bin" >> ~/.profile

$ source ~/.profile

$ export GOPATH=$HOME/work && go get && go install

For Centos:

$ sudo rpm --import

$ curl -s | tee /etc/yum.repos.d/go-repo.repo

$ sudo yum install golang

Next, create file ~/.aws/credentials with content:


To obtain s3 credentials (Access Key and Secret Key), that are generated on our part, please contact us via email or create Support ticket.


After creating the credentials file you may mount your container:

$ sudo $GOPATH/bin/goofys --region RegionOne --profile s3 --endpoint kontener /mnt/new

In example above, kontener is the name of the container, and /mnt/new is an example mount point.