Zum Hauptinhalt springen

Docker

Spin up a temporary local instance of OpenCloud using Docker.


Prerequisites:

  • Linux, Mac or Windows Subsystem for Linux (WSL)
  • Docker

1. Create Required Directories for Bind Mounts

mkdir -p $HOME/opencloud/opencloud-config
mkdir -p $HOME/opencloud/opencloud-data

2. Pull OpenCloud Image

docker pull opencloudeu/opencloud-rolling:latest

3. Initialize OpenCloud (First-time Setup)

docker run --rm -it \
-v $HOME/opencloud/opencloud-config:/etc/opencloud \
-v $HOME/opencloud/opencloud-data:/var/lib/opencloud \
-e IDM_ADMIN_PASSWORD=admin \
opencloudeu/opencloud-rolling:latest init

You can set your own password using IDM_ADMIN_PASSWORD=your_password. If not set, a password will be auto-generated

Admin general

4. Start OpenCloud

docker run \
--name opencloud \
--rm \
-d \
-p 9200:9200 \
-v $HOME/opencloud/opencloud-config:/etc/opencloud \
-v $HOME/opencloud/opencloud-data:/var/lib/opencloud \
-e OC_INSECURE=true \
-e PROXY_HTTP_ADDR=0.0.0.0:9200 \
-e OC_URL=https://localhost:9200 \
opencloudeu/opencloud-rolling:latest

5. Login

Login with your browser:

Admin general

6. Conclusion

Your OpenCloud server is now running and ready to use 🚀


Troubleshooting

If you encounter any issues or errors, try finding a solution here: