FROM httpd:2.4
COPY ./public-html/ /usr/local/apache2/htdocs/
Build using bocker file in the same dir
docker build -t my-apache2 .
See all docker images
docker images
Delete an image
docker rmi <id>
Stop a container
docker stop <id>
Enter in a container and start a /bin/bash session
docker exec -it <id> /bin/bash
Copy file
# from host to container
docker cp<source><container_id>:<destination># from container to host
docker cp<container_id>:<source><destination>
Docker compose up and build
docker-compose up --build -d
Prune images and containers
docker system prune
docker system prune -a
Docker service
# create a service
docker service create --publish 3003:3003 --name jw-ms --network intranet-dev-1 jw-ms
# force update a service
docker service update --force jw-ms
SSH (Secure Shell) tunneling is a technique that lets you securely forward network traffic through an encrypted SSH connection. It’s essentially a way to “pipe” otherwise insecure or restricted traffic through an SSH session, protecting Read more…
Intro Node.js is primarily single-threaded due to its event-driven, non-blocking I/O architecture, which means it handles tasks asynchronously on a single thread, particularly for I/O operations. However, for CPU-intensive tasks or tasks that benefit from Read more…
Kong has 3 different timeout connect_timeout: from kong to the micro. Once is connected then the connection is managed by keep-alive HTTP 1/1 open HTTP/2 can be used any reasonable value under 30000 ms read_timeout: end to Read more…
Welcome to 644 blog
This website uses cookies, also from third parties, to ensure you get the best experience on our website: Read More
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the ...
0 Comments