安装docker 容器 及 freebsd 运行openstack dashboard

Install and run a Docker container hello-world on openEuler. Also, install OpenStack Dashboard on FreeBSD.

  1. Install the container.

sudo dnf install docker

  1. Run Docker

docker run hello-world

Output: Hello from Docker. Success!

Now run the official Docker example.

  1. Pull the image

docker pull docker/welcome-to-docker

  1. Run the official Docker example

docker run --detach --name welcome --publish 8080:80 docker/welcome-to-docker

In your browser, enter the URL to see the welcome page: http://localhost:8080

  1. Stop and remove the container

docker rm --force welcome

We won’t discuss what Docker is, its features, or how advanced it is. We’ll just run a few examples.

Podman is another container solution, promoted by Fedora and openKylin.

https://bbs.openkylin.top/t/topic/173719?u=13240229741

Below is the installation and run of the OpenStack Dashboard on FreeBSD

The cleanup suggestions previously mentioned in the niri and Go posts also apply to later Rust posts and this one: include system and software versions, along with necessary steps, directly in the main text; place commands and output within code blocks. This makes it easier for readers to reproduce and improves retrievability for Agents.

Screenshots are helpful for showing runtime results, but inserting non-relevant visualizations like neofetch repeatedly in technical posts is discouraged. When sharing system information, simply put the relevant text inside a code block instead.

Regarding Docker, the dnf install docker command in this post installs the distribution-provided Docker 18.09 (aka docker-engine), which is no longer recommended. Consider switching to Moby or Docker CE instead. This package includes a startup cleanup patch that causes custom networks to be lost after a normal restart. For better installation practices, refer to:

Also, OpenEuler 25.09 is no longer under maintenance. We encourage you to try the newly released OpenEuler 26.09 and share any issues you encounter during use.

The forum welcomes foundational practical content, but quality of content and formatting are equally important. Low-information posts lacking necessary explanations, or those with poor formatting that hinder readability, may be cleaned up by moderators.

Another open-source cloud computing management platform: OpenStack

FreeBSD installation of OpenStack Dashboard

#pkg install openstack

#pkg install horizon

Essential Pitfall Checklist (FreeBSD 16-CURRENT + Python 3.12)

  1. Cache Configuration (Memcached vs LocMem)
    •
    Symptom: ConnectionRefusedError: [Errno 61] Connection refused (pymemcache)
    •
    Cause: py312-pymemcache is installed, but the memcached service is not running.
    •
    Solution:
    •
    Option A (Install service): pkg install memcached + service memcached start.
    •
    Option B (Recommended for test environments): Use in-memory caching by modifying local_settings.py:
    python
    CACHES = {‘default’: {‘BACKEND’: ‘django.core.cache.backends.locmem.LocMemCache’, ‘LOCATION’: ‘horizon’}}
  2. Static Files Permissions and Paths (Most Critical Pitfall)
    •
    Symptom: PermissionError: [Errno 13] Permission denied: ‘…/static/dashboard/css’ or missing page styles.
    •
    Cause: Django defaults to referencing site-packages, where Apache (www user) has no write permissions, and DEBUG=True triggers runtime directory creation.
    •
    Solution:
    •
    Use a dedicated directory: mkdir -p /usr/local/www/horizon/static
    •
    Set proper ownership: chown -R www:www /usr/local/www/horizon (ensure www has rwx permissions).
    •
    Configure: Set STATIC_ROOT = ‘/usr/local/www/horizon/static’ in local_settings.py, and disable debugging via DEBUG = False.
    •
    Collect static files: After setting environment variables, run python3 -m django collectstatic --noinput.
    •
    Apache configuration: Alias /static /usr/local/www/horizon/static — do not point back to site-packages.
  3. WSGI and Apache Virtual Host
    •
    Key point: Ensure py312-mod_wsgi is loaded, and WSGI processes run under the www user.
    •
    Critical configuration snippet:
    apache
    WSGIDaemonProcess horizon python-path=/usr/local/lib/python3.12/site-packages user=www group=www
    WSGIScriptAlias / /usr/local/lib/python3.12/site-packages/openstack_dashboard/wsgi.py
    Alias /static /usr/local/www/horizon/static
  4. Environment Variables and Dependencies
    •
    DJANGO_SETTINGS_MODULE=openstack_dashboard.settings must be exported; otherwise, manage.py operations will fail.
    •
    Required dependencies: py312-horizon, py312-pymemcache, apache24, py312-mod_wsgi.

Login from a mobile device — installation on Gentoo.