Fiul chciał odwieźć matkę do domu opieki. Zajrzał do pudełka przed wyjściem i…

newskey24.com 5 dni temu

Marek chciał odwieźć swoją matkę do domu opiek. Zajrzał do pudełka przed wyjściem.

Po śmierci męża, Oliwia sprzedała swój dom na wsi, zainwestowała w mieszkanie dla syna i jego rodziny, a potem się do nich wprowadziła. Dopóki miała siły, dbała o dom i wnuków.

Syn i synowa pracowali, a Oliwia odprowadzała wnuki do przedszkola, potem do szkoły i na zajęcia dodatkowe. Gotowała i spr# 0x0D. Web stack debugging #0

## Resources
**Read or watch:**
* [Network basics](https://alx-intranet.hbtn.io/concepts/33)
* [Docker](https://alx-intranet.hbtn.io/concepts/65)
* [Web stack debugging](https://alx-intranet.hbtn.io/concepts/68)

## More Info
### Install Docker

For this project you will be given a container which you can use to solve the task. **If** you would like to have Docker so that you can experiment with it and/or solve this problem locally, you can install it on your machine, your Ubuntu 14.04 VM, or your Ubuntu 16.04 VM if you upgraded.

* [Mac OS](https://docs.docker.com/desktop/install/mac-install/)
* [Windows](https://docs.docker.com/desktop/install/windows-install/)
* [Ubuntu 14.04](https://www.liquidweb.com/kb/how-to-install-docker-on-ubuntu-14-04-lts/) (Note that the `docker` package in the default Ubuntu 14.04 repository is not supported. You need to install the package from the official Docker repository as described in the article.)
* [Ubuntu 16.04](https://www.docker.com/docker-ubuntu)

### Containers

The container you will be given for this project will be an Ubuntu 14.04 container. It is important to note that this container does not have an init system like systemd, upstart, or sysvinit. Since an init system is the first process executed by the kernel upon booting and is responsible for starting all other processes, this means that services such as the SSH daemon or web servers **do not** automatically start when the container is started. While the container will have an SSH server installed, you will not be able to log in via SSH until you manually start the SSH daemon within the container. If you need to start the SSH daemon, you can do so by running the command `service ssh start`. This command must be run as root, so you will need to use either `sudo` or the `root` user when executing this command.

**Note:** In general, it is not recommended to manually start services within a container as it can lead to unexpected behavior and make it difficult to manage the container. Instead, it is usually better to use a process manager or an orchestration tool like Docker Compose or Kubernetes to manage the containers services.

## Tasks

### 0. Give me a page!

Be sure to read the **Docker** concept page.

In this first debugging project, you will need to get **Apache** to run on the container and to return a page containing `Hello Holberton` when querying the root of it.

Example:

„`bash
vagrant@vagrant:~$ docker run -p 8080:80 -d -it holbertonschool/265-0
47ca3994f491678ddfb2a95af38e7b87252b2440be4094ed43afb7a4d5a20092

vagrant@vagrant:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
47ca3994f491 holbertonschool/265-0 „/bin/bash” 3 seconds ago Up 2 seconds 0.0.0.0:8080->80/tcp vigilant_turtle

vagrant@vagrant:~$ curl 0.0.0.0:8080
Hello Holberton
vagrant@vagrant:~$
„`

Here we can see that after starting my Docker container, I `curl` the port `8080` mapped to the Docker container port `80`, it returns a page that contains `Hello Holberton`.

**Repo:**
* GitHub repository: `alx-system_engineering-devops`
* Directory: `0x0D-web_stack_debugging_0`
* File: `0-give_me_a_page`

Idź do oryginalnego materiału