alex-agency / opensuse-jdk-x86

Dockerfile for X11 sharing for OpenSUSE JDK 1.8 x86, Firefox x86 and Eclipse x86

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

alexagency/opensuse-jdk-x86

Dockerfile for X11 sharing for OpenSUSE JDK 1.8 x86, Firefox x86 and Eclipse x86

Installation

Install Docker Machine.

Create virtual machine:

docker-machine create -d virtualbox dev

Get IP address:

docker-machine ip dev

Connect to virtual machine:

docker-machine ssh dev

Go to shared (between host and virtualbox) home directory:

cd /Users/<MAC USER>
cd /c/Users/<WINDOWS USER>

Run alexagency/opensuse-jdk-x86 container with X11 sharing from Docker Hub image:

xhost +
docker run -it --rm -e DISPLAY=`hostname --ip-address`$DISPLAY alexagency/opensuse-jdk-x86 bash
firefox
eclipse

Credentials:

user: password
root: password

Build

Copy sources to shared (between host and virtualbox) home directory:

cd /Users/<MAC USER>/Docker/opensuse-jdk-x86
cd /c/Users/<WINDOWS USER>/Docker/opensuse-jdk-x86

Build Docker Image:

docker build --force-rm=true -t alexagency/opensuse-jdk-x86 .

Useful Docker Commands

Show list of all containers:

docker ps -a

Attach to a running container:

docker exec -it <CONTAINER ID> bash

To remove all stopeed containers:

docker rm $(docker ps -a -q)

Show list of all images:

docker images

To remove image by id:

docker rmi -f <IMAGE ID>

Delete all existing images:

docker rmi $(docker images -q -a)

About

Dockerfile for X11 sharing for OpenSUSE JDK 1.8 x86, Firefox x86 and Eclipse x86