$ docker run --rm -it ubuntu:latest bash
root@78320631a485:/# cd ~
root@05e07354a801:~# apt-get update && apt-get install golang ca-certificates
root@05e07354a801:~# go install go.k6.io/xk6/cmd/xk6@latest
root@05e07354a801:~# /root/go/bin/xk6 build latest --with github.com/tmieulet/xk6-cognito
root@05e07354a801:~# ls -la
total 48744
drwx------ 1 root root 4096 Sep 6 05:28 .
こんだけ
$ docker run --rm -it node:lts bash
node@3f80fb74707d:~$ mkdir fuga
node@3f80fb74707d:~$ cd fuga
node@3f80fb74707d:~/fuga$ npm init -y
Wrote to /home/node/fuga/package.json:
AWS Lambdaに割り当てるロールはロールを作る時にユースケースにLambdaを選べ
hoge.service は docker compose などを実行するやつ。
sudo -u rootless journalctl --user -u hoge.service
The "gopls" command is not available. Run "go install -v golang.org/x/tools/gopls@latest" to install.
Tools environment: GOPATH=/go
Installing 7 tools at /go/bin
gopls
gotests
gomodifytags
rootless@rootless:~$ ls -l /var/run/user/1001/docker.sock
srw-rw---T 1 rootless 166532 0 Oct 9 17:55 /var/run/user/1001/docker.sock
rootless@rootless:~$ cat dind/compose.yml
version: "3"
services:
dind:
root@rootfull:~# pwd
/root
root@rootfull:~# ls -l /var/run/docker.sock
srw-rw---- 1 root docker 0 Oct 5 20:15 /var/run/docker.sock
root@rootfull:~# cat tmp/dind/compose.yml
version: "3"
$ cat Dockerfile
FROM debian:stable-slim
#
# as root
#
USER root
WORKDIR /root
NewerOlder