Running X server via Docker

Lately, I have been using a Docker server Linux laptop. On the laptop, I do all; programming, browsing, using Twitter, using Slack, and seeing YouTube. So, I have been running an X Server in a container and using GUI directly.(It’s not directory :) I will explain the how-to. Architecture: 0. My laptop is Ubuntu Server 16.04.3 LTS (64bit) 1 2 3 4 5 $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.

How to use variables in FROM of Dockerfile

Use ARG before FROM. Dockerfile: 1 2 1: ARG tag 2: FROM ANY_IMAGE:$tag And docker build with args. 1 docker build . -t desktop --build-arg tag=hoge You can build a container FROM ANY_IMAGE:hoge. Bibliography https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact

Java でa == 1 && a == 2 && a == 3やってみた

== じゃなくて、equals ならできる…… 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 public class Main { public static void main(String[] args) { MyInt a = new MyInt(1); if (a.equals(1) && a.equals(2) && a.equals(3)) { System.out.println("true");