Skip to content

Instantly share code, notes, and snippets.

@syuu1228
Last active February 27, 2020 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syuu1228/a8b0e3b2b2ef7ca2cf3a9123c4e4ff88 to your computer and use it in GitHub Desktop.
Save syuu1228/a8b0e3b2b2ef7ca2cf3a9123c4e4ff88 to your computer and use it in GitHub Desktop.
syuu@X1CARBON:~$ genie -c /bin/bash
syuu@X1CARBON-wsl:~$ ps axf
PID TTY STAT TIME COMMAND
769 pts/0 S 0:00 /sbin/runuser -u syuu -- /lib/genie/runinwsl.sh /bin/bash
770 pts/0 S 0:00 \_ /bin/bash
782 pts/0 R+ 0:00 \_ ps axf
1 ? Ss 0:00 /lib/systemd/systemd
49 ? S<s 0:00 /lib/systemd/systemd-journald
53 ? Ss 0:00 /sbin/lvmetad -f
57 ? Ss 0:00 /lib/systemd/systemd-udevd
170 ? Ssl 0:00 /lib/systemd/systemd-timesyncd
172 ? Ss 0:00 /lib/systemd/systemd-networkd
173 ? Ss 0:00 /lib/systemd/systemd-resolved
180 ? Ss 0:00 /usr/sbin/atd -f
181 ? Ss 0:00 /lib/systemd/systemd-logind
182 ? Ssl 0:00 /usr/sbin/irqbalance --foreground
183 ? Ssl 0:00 /usr/bin/lxcfs /var/lib/lxcfs/
185 ? Ssl 0:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers
187 ? Ss 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
191 ? Ssl 0:00 /usr/sbin/rsyslogd -n
192 ? Ssl 0:00 /usr/lib/accountsservice/accounts-daemon
193 ? Ss 0:00 /usr/sbin/cron -f
225 ? Ssl 0:00 /usr/lib/policykit-1/polkitd --no-debug
247 ? Ssl 0:00 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
257 ? Ssl 0:00 /usr/bin/containerd
285 tty1 Ss+ 0:00 /sbin/agetty -o -p -- \u --noclear tty1 linux
367 ? Ss 0:00 /usr/sbin/sshd -D
syuu@X1CARBON-wsl:~$ sudo systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; disabled; vendor preset: enabled)
Active: inactive (dead) since Thu 2020-02-27 22:38:11 JST; 9s ago
Docs: https://docs.docker.com
Process: 396 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=0/SUCCESS)
Main PID: 396 (code=exited, status=0/SUCCESS)
Feb 27 22:35:02 X1CARBON-wsl dockerd[396]: time="2020-02-27T22:35:02.718904908+09:00" level=info msg="Docker daemon" commit=2d0083d graphFeb 27 22:35:02 X1CARBON-wsl dockerd[396]: time="2020-02-27T22:35:02.719083311+09:00" level=info msg="Daemon has completed initializationFeb 27 22:35:02 X1CARBON-wsl dockerd[396]: time="2020-02-27T22:35:02.755082110+09:00" level=info msg="API listen on /var/run/docker.sock"Feb 27 22:35:02 X1CARBON-wsl systemd[1]: Started Docker Application Container Engine.
Feb 27 22:35:40 X1CARBON-wsl dockerd[396]: time="2020-02-27T22:35:40.734011943+09:00" level=warning msg="failed to retrieve runc version:Feb 27 22:37:17 X1CARBON-wsl dockerd[396]: time="2020-02-27T22:37:17.916134517+09:00" level=info msg="ignoring event" module=libcontainerFeb 27 22:38:11 X1CARBON-wsl systemd[1]: Stopping Docker Application Container Engine...
Feb 27 22:38:11 X1CARBON-wsl dockerd[396]: time="2020-02-27T22:38:11.852052461+09:00" level=info msg="Processing signal 'terminated'" Feb 27 22:38:11 X1CARBON-wsl dockerd[396]: time="2020-02-27T22:38:11.852653165+09:00" level=info msg="stopping event stream following graFeb 27 22:38:11 X1CARBON-wsl systemd[1]: Stopped Docker Application Container Engine.
syuu@X1CARBON-wsl:~$ sudo systemctl start docker
syuu@X1CARBON-wsl:~$ sudo docker run --name fedora1 -ti fedora:latest /bin/bash
[root@e2fb8621786f /]# cat /etc/os-release
NAME=Fedora
VERSION="31 (Container Image)"
ID=fedora
VERSION_ID=31
VERSION_CODENAME=""
PLATFORM_ID="platform:f31"
PRETTY_NAME="Fedora 31 (Container Image)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:31"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f31/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=31
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=31
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Container Image"
VARIANT_ID=container
[root@e2fb8621786f /]#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment