CompleteNoobs Docker Image 0.2 Install Basics: Difference between revisions
Created page with " * Requires docker installed on system == Download image== * Download the completenoobs container image. <code>docker pull completenoobs/cnoobs-wiki:0.2</code> == Create directory for file sharing == * If you do not create this file - docker will create one for you when you run the <code>docker run</code> command. ** If docker run creates the file, you will not have permissions to send data to that directory. ** Change permission's if that happens <code>sudo chmod 777..." |
|||
Line 7: | Line 7: | ||
== Create directory for file sharing == | == Create directory for file sharing == | ||
* If you do not create this | * If you do not create this directory - docker will create one for you when you run the <code>docker run</code> command. | ||
** If docker run creates the | ** If docker run creates the directory, you will not have permissions to send data to that directory. | ||
** Change permission's if that happens <code>sudo chmod 777 ~/wiki-container</code> | ** Change permission's if that happens <code>sudo chmod 777 ~/wiki-container</code> | ||
<code>mkdir ~/wiki-container</code> | <code>mkdir ~/wiki-container</code> |
Latest revision as of 14:31, 2 September 2025
- Requires docker installed on system
Download image
- Download the completenoobs container image.
docker pull completenoobs/cnoobs-wiki:0.2
Create directory for file sharing
- If you do not create this directory - docker will create one for you when you run the
docker run
command.- If docker run creates the directory, you will not have permissions to send data to that directory.
- Change permission's if that happens
sudo chmod 777 ~/wiki-container
mkdir ~/wiki-container
Run image
docker run -d -p 8080:80 \ -v ~/wiki-container:/export \ -v completenoobs_mysql:/var/lib/mysql \ -v completenoobs_images:/var/www/html/images \ --name completenoobs_wiki \ completenoobs/cnoobs-wiki:0.2
Download XMl
Download an xml file, like:01_09_25.Noobs.xml
- Move to
~/wiki-container/
directory
Import XML
docker exec completenoobs_wiki /var/www/html/import_wiki.sh /export/01_09_25.Noobs.xml
Check Wiki
- In browser go to this address
Restore the completenoobs Main Page:
By default, the completenoobs
MediaWiki instance overwrites the Main Page with content like "MediaWiki has been installed." To revert to the page’s state before this change, undo the initial revision:
1. Go to http://localhost:8080
in your browser.
2. On the Main Page, click View History (top-right corner).
3. Find the top revision by MediaWiki default
and click Undo.
4. Scroll down and click Save changes to revert the Main Page.
Change Admin Password
- Can be done with 'Web Browser GUI' or 'Terminal'
- Default Password for user Admin =
AdminPass123!
Via Web Interface
1. Login at http://localhost:8080 2. Click username → Preferences 3. Go to Password tab 4. Change password
Via Terminal
docker exec -it completenoobs_wiki bash
php /var/www/html/maintenance/run.php changePassword.php --user=admin --password=NEWPASSWORD
exit
Export a backup of your wiki
- This will create a backup of your wiki to a dated.xml file
20250902_wiki_export.xml
, which you can find in your~/wiki-container
directory on host, or/export/
directory in container.
docker exec completenoobs_wiki /var/www/html/export_wiki.sh
Remove container
To completely remove the completenoobs/cnoobs-wiki:0.1
container and image from your Ubuntu 24.04 system, follow these steps.
You can also remove associated persistent storage volumes if they were created.
Step 1: Stop and Remove the Container
If the container is running, stop it and then remove it.
docker stop completenoobs_wiki
docker rm completenoobs_wiki
Alternatively, stop and remove in one command:
docker rm -f completenoobs_wiki
Step 2: Remove the Docker Image
Remove the completenoobs/cnoobs-wiki:0.2
image.
docker rmi completenoobs/cnoobs-wiki:0.2
Note: If the image is in use by other containers, remove those containers first or use docker rmi -f completenoobs/cnoobs-wiki:0.1
to force removal (use with caution).
Step 3: Remove Persistent Storage Volumes (Optional)
If you used persistent storage, remove the associated volumes to free up space.
docker volume rm completenoobs_mysql completenoobs_images
Note: Ensure no other containers are using these volumes, as this will delete all stored data.
Step 4: Verify Removal
Check that the container, image, and volumes are removed.
- List all containers (including stopped ones):
docker ps -a
- List all images:
docker images
- List all volumes:
docker volume ls
If any items remain, repeat the relevant removal commands or check for dependencies.