Docker – after installation Windows

Przykładowe ściągnięcie obrazu getting-started, uruchomienie konternera i wrzucenie obrazu do docker huba:

# docker run --name  repo alpine/git clone https://github.com/docker/getting-started.git

# docker cp repo:/git/getting-started .

# cd getting-started
# docker run -d -p 80:80 --name docker-tutorial docker101tutorial

# docker tag docker101tutorial jornathanx/docker101tutorial
# docker push jornathanx/docker101tutorial

Redis – konfiguracja

Główny plik konfiguracyjny

# nano /etc/redis/redis.conf

bind 127.0.0.1  - tylko localhost

# By default, if no "bind" configuration directive is specified, Redis listens
# for connections from all the network interfaces available on the server.
# It is possible to listen to just one or multiple selected interfaces using
# the "bind" configuration directive, followed by one or more IP addresses.

Czytaj dalej Redis – konfiguracja

SRI – subresource integrity

integrity – atrybut kontrolek script i link – skrót zawartości pliki (sha256, sha384, sha512) kodowany w base64

<script src="https://example.com/myscript.js"
        integrity="sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
        crossorigin="anonymous"></script>

Wyliczenie skrótu dla zawartości pliku myscript.js

# cat myscript.js | openssl dgst -sha384 -binary | openssl base64 -A

oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC