3. “Containers are an abstraction at the app layer that
packages code and dependencies together. Multiple
containers can run on the same machine and share the OS
kernel with other containers, each running as isolated
processes in user space.“
docker containers
4. “Containers are an abstraction at the app layer that
packages code and dependencies together. Multiple
containers can run on the same machine and share the OS
kernel with other containers, each running as isolated
processes in user space.“
docker containers
“To use a programming metaphor, if an image is a class,
then a container is an instance of a class—a runtime
object.”
13. dup() {
if [ -f ./docker-compose.dev.yml ]; then
command docker-compose -f docker-compose.dev.yml -f
docker-compose.yml up -d
command docker-compose -f docker-compose.dev.yml -f
docker-compose.yml ps
else
command docker-compose up -d && docker-compose ps
fi
}
14. dup() {
if [ -f ./docker-compose.dev.yml ]; then
command docker-compose -f docker-compose.dev.yml -f
docker-compose.yml up -d
command docker-compose -f docker-compose.dev.yml -f
docker-compose.yml ps
else
command docker-compose up -d && docker-compose ps
fi
}
15. Name Command State Ports
----------------------------------------------------------------------------------------------------------
c1a3bd068237_c1a3bd068237_zpi_fpm_1 docker-php-entrypoint php-fpm Exit 0
zpi_jobrunner_1 /usr/bin/supervisord Exit 255
zpi_mailhog_1 MailHog Up 1025/tcp, 0.0.0.0:8084-
>8025/tcp
zpi_phppgadmin_1 /run.sh Up 0.0.0.0:8083->80/tcp
zpi_postgres_1 /docker-entrypoint.sh postgres Up 0.0.0.0:54321->5432/tcp
zpi_redis_1 docker-entrypoint.sh redis ... Up 6379/tcp
zpi_www_1 /usr/sbin/apache2ctl -D FO ... Exit 137
docker-compose ps
16. Name Command State Ports
----------------------------------------------------------------------------------------------------------
c1a3bd068237_c1a3bd068237_zpi_fpm_1 docker-php-entrypoint php-fpm Exit 0
zpi_jobrunner_1 /usr/bin/supervisord Exit 255
zpi_mailhog_1 MailHog Up 1025/tcp, 0.0.0.0:8084-
>8025/tcp
zpi_phppgadmin_1 /run.sh Up 0.0.0.0:8083->80/tcp
zpi_postgres_1 /docker-entrypoint.sh postgres Up 0.0.0.0:54321->5432/tcp
zpi_redis_1 docker-entrypoint.sh redis ... Up 6379/tcp
zpi_www_1 /usr/sbin/apache2ctl -D FO ... Exit 137
docker-compose ps
zpi_www_1
17. Name Command State Ports
----------------------------------------------------------------------------------------------------------
c1a3bd068237_c1a3bd068237_zpi_fpm_1 docker-php-entrypoint php-fpm Exit 0
zpi_jobrunner_1 /usr/bin/supervisord Exit 255
zpi_mailhog_1 MailHog Up 1025/tcp, 0.0.0.0:8084-
>8025/tcp
zpi_phppgadmin_1 /run.sh Up 0.0.0.0:8083->80/tcp
zpi_postgres_1 /docker-entrypoint.sh postgres Up 0.0.0.0:54321->5432/tcp
zpi_redis_1 docker-entrypoint.sh redis ... Up 6379/tcp
zpi_www_1 /usr/sbin/apache2ctl -D FO ... Exit 137
docker-compose ps
Exit 137
18. Attaching to zpi_www_1
www_1 | AH00112: Warning: DocumentRoot
[/var/www/html] does not exist
www_1 | AH00558: apache2: Could not reliably
determine the server's fully qualified domain name, using
172.18.0.7. Set the 'ServerName' directive globally to
suppress this message
www_1 | AH00112: Warning: DocumentRoot
[/var/www/html] does not exist
www_1 | AH00558: apache2: Could not reliably
determine the server's fully qualified domain name, using
172.18.0.2. Set the 'ServerName' directive globally to
suppress this message
docker-compose logs www
19. Attaching to zpi_www_1
www_1 | AH00112: Warning: DocumentRoot
[/var/www/html] does not exist
www_1 | AH00558: apache2: Could not reliably
determine the server's fully qualified domain name, using
172.18.0.7. Set the 'ServerName' directive globally to
suppress this message
www_1 | AH00112: Warning: DocumentRoot
[/var/www/html] does not exist
www_1 | AH00558: apache2: Could not reliably
determine the server's fully qualified domain name, using
172.18.0.2. Set the 'ServerName' directive globally to
suppress this message
docker-compose logs www
20. Attaching to zpi_www_1
www_1 | AH00112: Warning: DocumentRoot
[/var/www/html] does not exist
www_1 | AH00558: apache2: Could not reliably
determine the server's fully qualified domain name, using
172.18.0.7. Set the 'ServerName' directive globally to
suppress this message
www_1 | AH00112: Warning: DocumentRoot
[/var/www/html] does not exist
www_1 | AH00558: apache2: Could not reliably
determine the server's fully qualified domain name, using
172.18.0.2. Set the 'ServerName' directive globally to
suppress this message
docker-compose logs www
37. installation
$ docker run -v "/var/run/docker.sock:/var/run/docker.sock"
-d -p 9000:9000 portainer/portainer
Underline part will be required for local environment, more info you can find here.