livebook01 - hvn@pymi.vn
1..999
|> Enum.filter(&(rem(&1, 3) == 0 or rem(&1, 5) == 0))
|> Enum.reduce(fn x, acc -> acc + x end)
1..999
|> Enum.filter(&(rem(&1, 3) == 0 or rem(&1, 5) == 0))
|> Enum.reduce(fn x, acc -> acc + x end)
$ docker run -it alpine:3.7 -- sh [125] | |
Unable to find image 'alpine:3.7' locally | |
3.7: Pulling from library/alpine | |
5d20c808ce19: Pull complete | |
Digest: sha256:8421d9a84432575381bfabd248f1eb56f3aa21d9d7cd2511583c68c9b7511d10 | |
Status: Downloaded newer image for alpine:3.7 | |
docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "--": executable file not found in $PATH: unknown. | |
ERRO[0009] error waiting for container: context canceled | |
$ docker run -it alpine:3.7 sh [127] | |
/ # nslookup google.com |