-
Create a base image https://docs.docker.com/engine/userguide/eng-image/baseimages/
-
Best practices for writing Dockerfiles https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/
-
Docker run reference https://docs.docker.com/engine/reference/run/#/specifying-an-init-process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://cloudplatform.googleblog.com/2015/10/Full-Speed-Ahead-with-HTTP2-on-Google-Cloud-Platform.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is part of systemd. | |
# | |
# systemd is free software; you can redistribute it and/or modify it | |
# under the terms of the GNU Lesser General Public License as published by | |
# the Free Software Foundation; either version 2.1 of the License, or | |
# (at your option) any later version. | |
[Unit] | |
Description=Temporary Directory for nginx | |
ConditionPathIsMountPoint=!/var/lib/nginx/tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@localhost ~]# getfacl /var/log/nginx | |
getfacl: Removing leading '/' from absolute path names | |
# file: var/log/nginx | |
# owner: nginx | |
# group: nginx | |
user::rwx | |
user:dev2:r-x #effective:--- | |
user:dev1:r-x #effective:--- | |
group::--- | |
mask::--- |
-
Dockerizing a Node.js web app
-
Official Docker Image for Node.js
-
Building Efficient Dockerfiles - Node.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/s2-networkscripts-interfaces-alias |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mysql_escape_string($str) | |
{ | |
return str_replace(["\n", "\r", "\x1a"], ["\\n", "\\r", "\\Z"], addslashes($str)); | |
} | |
function mysql_query($query, $link){ | |
return mysqli_query($link, $query); | |
} | |
function mysql_fetch_row($result){return mysqli_fetch_row($result);} |
More info in documentation: IPv6 with Docker
OlderNewer