LABEL ubuntu
menu ubuntu install
kernel images/ubuntu/ubuntu-installer/amd64/linux
append vga=788 initrd=images/ubuntu/ubuntu-installer/amd64/initrd.gz --- auto=true url=http://ваш-сервер/preseed.cfg quiet
auto=true url=http://ваш-сервер/preseed.cfg
~ docker run -it -p 8010:80 nginx:stable
Unable to find image 'nginx:stable' locally
stable: Pulling from library/nginx
68ced04f60ab: Pull complete
e6edbc456071: Pull complete
9f915b082e59: Pull complete
Digest: sha256:bfb2cb1b47766fc424a7826d5ae79dc3aa70a8bbb697de7e683b965d47eb4295
Status: Downloaded newer image for nginx:stable
172.17.0.1 - - [27/Feb/2020:09:02:52 +0000] "GET / HTTP/1.1" 200 612 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987."
2020/02/27 09:02:52 [error] 8#8: *1 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 172.17.0.1, server: localhost, request: "GET /favico"
172.17.0.1 - - [27/Feb/2020:09:02:52 +0000] "GET /favicon.ico HTTP/1.1" 404 555 "http://localhost:8010/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTM"
~ ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.045 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.102 ms
^C
--- localhost ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.045/0.073/0.102/0.029 ms
- name: create users
user:
name: "{{ item }}"
createhome: yes
state: present
password: "{{ lookup('password', '/tmp/' + ansible_host + '_' + item + '_password.txt encrypt=md5_crypt chars=ascii_letters,digits length=1
update_password: on_create
with_items:
- "{{ users }}"
register: newuser
➜ ~ docker pull python:3.7-alpine
3.7-alpine: Pulling from library/python
c9b1b535fdd9: Pull complete
2cc5ad85d9ab: Pull complete
53a2fca3c2ea: Pull complete
30fce49de8b1: Pull complete
ca406aaf66e0: Pull complete
Digest: sha256:4e91ff3eed8bdd013178b6d8e55f656b394aeea42945f04389e4af5462e7cb6d
Status: Downloaded newer image for python:3.7-alpine
docker.io/library/python:3.7-alpine