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 | |
mysqli_connect("db", "root", "bytes") or die(mysqli_error()); | |
echo "Conectou!" | |
?> |
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
FROM php:5.6-apache | |
RUN docker-php-ext-install mysqli |
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
stdClass Object | |
( | |
[session] => stdClass Object | |
( | |
[glpi_plugins] => stdClass Object | |
( | |
[1] => datainjection | |
[2] => genericobject | |
[3] => resources | |
[5] => fields |
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
Segue a lista de comandos docker e sua utilidade: | |
docker attach – Acessar dentro do container e trabalhar a partir dele. | |
docker build – A partir de instruções de um arquivo Dockerfile eu possa criar uma imagem. | |
docker commit – Cria uma imagem a partir de um container. | |
docker cp – Copia arquivos ou diretórios do container para o host. | |
docker create – Cria um novo container. | |
docker diff – Exibe as alterações feitas no filesystem do container. | |
docker events – Exibe os eventos do container em tempo real. | |
docker exec – Executa uma instrução dentro do container que está rodando sem precisar atachar nele. |
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
[4] => stdClass Object | |
( | |
[id] => 5 | |
[entities_id] => 1 | |
[name] => Teste requerente - demo es | |
[date] => 2016-10-04 17:16:08 | |
[closedate] => | |
[solvedate] => | |
[date_mod] => 2016-10-04 17:16:25 | |
[users_id_lastupdater] => 2 |
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
Run the Docker Quickstart Terminal app | |
Run: docker-machine restart default | |
Run: eval $(docker-machine env default) |
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
{"0.26878893753971866":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgME2ihq96090iE93j/RI5aI1hCJuR4KV8Tl\r\naPhuclZLzkJdtYvsPHtGhFPnXzrgKQRarglmSZ1MpUBJpqtoIwag/83/AAAACDxn\r\naXRodWI+wv8AAACOBBATCABA/wAAAAWCWD7MI/8AAAACiwn/AAAACZDQgCp2ynpr\r\nEP8AAAAFlQgJCgv/AAAABJYDAQL/AAAAApsD/wAAAAKeAQAAoesA/jzxaBMH1bZc\r\nhdcO8rL1gXas89//9GrAgQEmNJPDO1K7AP9AqzKHDN9p3EYdmN1y+Tan6XZOUX6o\r\n2XnVMZVMF6w4Ns7/AAAAVgQAAAAAEggqhkjOPQMBBwIDBD5y3LLvTky4oETp62OZ\r\nWsLu7TO5TDyx0td24dhKF+SKfqsKlG/xfhyDUlz7H0GeY6y/fnLTvQtBCm0MuyNA\r\nwRoDAQgHwv8AAABtBBgTCAAf/wAAAAWCWD7MI/8AAAAJkNCAKnbKemsQ/wAAAAKb\r\nDAAABrQA/32Q+xExw8it8Iqfms+g45hSc7QTAmEfNoimelaMrybdAQCoIQ69Vg7J\r\n2jctR3fQvbON2SJRTbsAMqdgLZ9fzIQ5ug==\r\n=4EMm\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n"} |
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
# vim /etc/network/interfaces |
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
auto eth0 | |
iface eth0 inet static | |
address 10.10.10.122 | |
netmask 255.255.255.0 | |
gateway: 10.10.10.1 | |
network: 10.10.10.0 | |
broadcast 10.10.10.255 |
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
# /etc/init.d/networking restart |