Use the current user and his group(s) inside the container:
docker run
-ti
--rm
-u `id -u`
-v /etc/group:/etc/group
-v /etc/passwd:/etc/passwd
alpine
/bin/sh
11:45:03.685 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@45974736, org.gradle.logging.internal.logback.LogbackLoggingConfigurer@4ec44deb, org.gradle.logging.internal.JavaUtilLoggingConfigurer@39d7a7b3] | |
11:45:04.344 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@45974736, org.gradle.logging.internal.logback.LogbackLoggingConfigurer@4ec44deb, org.gradle.logging.internal.JavaUtilLoggingConfigurer@39d7a7b3] | |
11:45:04.348 [INFO] [org.gradle.BuildLogger] Starting Build | |
11:45:04.348 [DEBUG] [org.gradle.BuildLogger] Gradle user home: /Users/test/.gradle | |
11:45:04.348 [DEBUG] [org.gradle.BuildLogger] Current dir: /Users/test/Desktop/IMAGINARY/javafx-gradle-bug | |
11:45:04.349 [DEBUG] [org.gradle.BuildLogger] Settings file: null | |
11:45:04.350 [DEBUG] [org.gradle.BuildLogger] Build file: nul |
11:29:31.536 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@6c7d22, org.gradle.logging.internal.logback.LogbackLoggingConfigurer@8b7aca, org.gradle.logging.internal.JavaUtilLoggingConfigurer@12a87f4] | |
11:29:32.433 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@6c7d22, org.gradle.logging.internal.logback.LogbackLoggingConfigurer@8b7aca, org.gradle.logging.internal.JavaUtilLoggingConfigurer@12a87f4] | |
11:29:32.437 [INFO] [org.gradle.BuildLogger] Starting Build | |
11:29:32.438 [DEBUG] [org.gradle.BuildLogger] Gradle user home: /home/user/.gradle | |
11:29:32.438 [DEBUG] [org.gradle.BuildLogger] Current dir: /media/sf_IMAGINARY/javafx-gradle-bug | |
11:29:32.439 [DEBUG] [org.gradle.BuildLogger] Settings file: null | |
11:29:32.439 [DEBUG] [org.gradle.BuildLogger] Build file: null | |
11:29:32.456 [DEBUG |
<!-- | |
run on console: | |
websockify --wrap-mode=respawn 1234 -- bash -c 'cat | netcat -q -1 -k -l 1234' | |
replace 'cat' with the command of your choice | |
/--> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta name="generator" content= | |
"HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org" /> |
#---------------------------------------------------------------------------- | |
# Profile for LG WebOS TVs. | |
# See DefaultRenderer.conf for descriptions of all the available options. | |
# | |
RendererName = LG UG85 TV | |
RendererIcon = LG-UB820V.png | |
# ============================================================================ | |
# This renderer has sent the following string/s: |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<h2>Open your JavaScript console!</h2> | |
<div> |
Use the current user and his group(s) inside the container:
docker run
-ti
--rm
-u `id -u`
-v /etc/group:/etc/group
-v /etc/passwd:/etc/passwd
alpine
/bin/sh
/* | |
* Copyright 2016 Christian Stussak | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
#!/bin/bash | |
if [ "$#" -lt 2 ]; then | |
if [ "$#" -eq 1 ]; then | |
DISPLAYS=`xrandr | grep " connected" | sed "s/ .*$//" | grep -v "$1"` | |
DISPLAYS="$1 $DISPLAYS" | |
else | |
DISPLAYS=`xrandr | grep " connected" | sed "s/ .*$//"` | |
fi | |
ARR_DISPLAYS=( $DISPLAYS ) |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>WebAudio Latency Checker</title> | |
<meta name="description" content="Connects user input directly with WebAudio output in order to check for the minimal achievable latency"> | |
<meta name="author" content="Christian Stussak"> |
<code_scheme name="Airbnb" version="173"> | |
<option name="RIGHT_MARGIN" value="100" /> | |
<HTMLCodeStyleSettings> | |
<option name="HTML_ENFORCE_QUOTES" value="true" /> | |
</HTMLCodeStyleSettings> | |
<JSCodeStyleSettings version="0"> | |
<option name="USE_DOUBLE_QUOTES" value="false" /> | |
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" /> | |
<option name="SPACES_WITHIN_IMPORTS" value="true" /> | |
<option name="USE_CHAINED_CALLS_GROUP_INDENTS" value="true" /> |