Docker

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
Line 5: Line 5:
 
ATTENTION this uses default passwords, and is completely unsecure !!!!
 
ATTENTION this uses default passwords, and is completely unsecure !!!!
  
First install it
+
==First install docker==
 
* sudo apt-get install docker.io  
 
* sudo apt-get install docker.io  
 
* sudo usermod -a -G docker $(id -un)
 
* sudo usermod -a -G docker $(id -un)

Revision as of 19:08, 30 January 2016

My little page about getting docker to run, done by somebody having no idea what docker is.

Yeah, DAU-docker!

ATTENTION this uses default passwords, and is completely unsecure !!!!

First install docker

  • sudo apt-get install docker.io
  • sudo usermod -a -G docker $(id -un)
  • # logoout/login to get your group attribution


Mediawiki

Create a database

  • # no idea what this does, I just pasted it from https://hub.docker.com/_/mysql/
  • docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:latest

Create a mediawiki

  • database host: mysql
  • database name: mysql
  • table prefix: mw
  • username: root
  • password: my-secret-pw
  • at end of setup you get a LocalSettings.php to download
  • this file has to be provided to the docker or put into the container. Seems to be several ways to do it


Engelsystem

Grabbed infos from https://hub.docker.com/r/whiledo/engelsystem-fhmuc-tool/

Make a DB

  • docker run --name mysql-engelsystem -e MYSQL_ROOT_PASSWORD=my-secret-pw -p 3306:3306 -d mysql

Setup engels. This is not tested, just plastered together in hope that it works

  • docker run -d -p 9090:80 -e mysqlhost="loclahost" --link mysql-engelsystem:mysql -e installmysql="yes" whiledo/engelsystem-fhmuc-tool
  • firefox http://localhost:9090/

If running the docker again, do not give the '-e installmysql="yes" ' part

Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools