Until you run apache on ubuntu on docker

To create an operating environment for php, run apache for the time being.

goal

apt update Update the apt package list. Immediately after creating the container, there is nothing in the package list / var / lib / apt / lists. Even if you do apt install xxx, you should get the error message Unable to locate package xxx.

Copy the package list from /etc/apt/sources.list to / var / lib / apt / lists with the following command.

apt update

Start apache

source /etc/apache2/apache2.conf
apache2

Access confirmation

When you access http: // localhost from your local Chrome, you will see the following screen.

image.png

Various installations (memories)

It's something I got on my own. Not related to apache. I couldn't use vim with ubuntu made with docker, so I installed it.

apt install vim
apt install gcc make
apt install golang
apt install nginx
apt install python
apt install python3-pip
pip3 install boto3
apt install php

Summary

Recommended Posts

Until you run apache on ubuntu on docker
Until you run CuPy (v11.1) on Ubuntu 20.04
Until you put Ubuntu 20 on Windows 10 Home and WSL2 and run Docker
Until you run Quarkus and run docker image on Amazon ECS
Run NordVPN on Docker (Windows) Ubuntu container
Run Ubuntu + ROS with Docker on Mac
Apache2 on Ubuntu20.04 LTS
Run tiscamera on Ubuntu 18.04
Run phpunit on Docker
Until you run the Apache Velocity sample code
Until you try running Apache Kafka with docker image
Run VS Code on Docker
Run openvpn on Docker (windows)
Oracle Java 8 on Docker Ubuntu
Run chromium-mir-kiosk on Ubuntu Core
Run java applet on ubuntu
Run Eclipse CDT on Ubuntu
Ssh to Ubuntu on VirtualBox on your Mac and do it until you install Docker
Until you start nginx on CentOS using Docker on Mac OS
Run SSE (Server-Sent-Event) samples on docker
Steps to run docker on Mac
Run React on a Docker container
Run the AWS CLI on Docker
How to run JavaFX on Docker
Run GUI application on Docker container
Run PureScript on a Docker container
Until you build the docker environment and start / stop the Ubuntu container
Use docker in proxy environment on ubuntu 20.04.1
Microservices 101-I tried putting Docker on Ubuntu-
Try putting Docker in ubuntu on WSL
Run GUI application on Docker container (Japanese input)
Liberty on Docker
Until you start developing android apps on mac
Run JSP Hello World with Tomcat on Docker
Docker on Ubuntu18.04 on WSL2 and VSCode installation instructions
Until you run mruby in your browser (WebAssembly)
How to run NullpoMino 7.5.0 on Ubuntu 20.04.1 64bit version
tmux on Ubuntu
Redmine on Docker
Systemctl cannot be used on Ubuntu inside Docker container
Until you publish the app on the App Store by yourself
Run the Android emulator on Docker using Android Emulator Container Scripts
[Docker] Build an Apache container on EC2 using dockerfile
Screen recording on Ubuntu 20.04
Web Bluetooth on Ubuntu20.04
Try DisplayLink on Ubuntu 20.04
Reinstall Kubernetes on Ubuntu 19.10
Docker installation on CentOS 6
Install pyqt5 on ubuntu
python notes on docker
Test run on rails
Run Pico with docker
Run PostgreSQL on Java
Install Docker on Manjaro
Install Ruby on Ubuntu 20.04
Run Payara with Docker
Setting JAVA_HOME on Ubuntu
Install Autoware on Ubuntu 18.04.5
Put JetBrains on Ubuntu
Use mkdir on ubuntu
Use cpplapack on ubuntu