Introduction to Alpine Linux usage
Directory:
A brief introduction of Alpine
Second, alpine Local installation
Third, alpine under the Docker operation
Iv. configuration and use of Alpine
4.1 Network related files
4.2 Update the domestic source
4.3 Basic use of package man
How to Use Alpine in Linux to access Gmail in the command line
For example, if you are a command line enthusiast, I am confident that you will use this powerful work environment to execute even a tool for a daily task and cheer for it, for example, from scheduling, managing finance, getting Facebook, Twitter, and other tasks. (LCTT Note: another premise for reading this article is that you can still access or know what Gmail is .)
In this post, I will
In this post, I'll show you another nifty use case for Linux command lines: Visit Google's Gmail service, and for that, we'll use Alpine, a ncurses-based multi-function command-line mail client (don't confuse Alpine Linux). We will configure Gmail's IMAP and SMTP settings in Alphine to receive and send mail in the terminal environment via Google's mail server. At the end of this tutorial, you will find that
a subnet, with proxy server to achieve traffic redirection. In this case , you need to customize the DNS rules to match the server hostname to the intranet IP one by one. through Docker, Alpine and the Unbound Quickly create micro DNS ServerDocker After the advent of this embarrassing situation is coming to an end, and now we can pass Docker , Alpine and the Unbound Fast Implementation DNS the server is ho
Installing ubuntu14.04And then#获取root权限sudo su#安装dockerApt-get Install Docker#准备基础镜像Docker Pull AlpineDocker run-a stdin-a stdout-i-T alpine/bin/shExecution enters the container/#Exit launches container interiorDocker Ps-aCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES573010aaf72d alpine:latest "/bin/sh" 4 minutes ago Exited (1) seconds ago Sad_coriDocker Attach 573010aaf72dFATA[0000] cannot attach to a stopped container, start it firstThe conta
Alpine Linux's official website:http://www.alpinelinux.org/#官方Https://pkgs.alpinelinux.org/packages #官方提供的安装包查询When you use Docker to create a container, the underlying image typically chooses Ubuntu or CentOS, regardless of the size of the image above 100MB.Alpine Linux is a security-oriented, lightweight Linux distribution.Alpine Linux employs musl libc and busybox to reduce the volume and runtime resource consumption of the system.While staying sli
need to have separate kernels and other system files, so as long as you install what you need on top of it, will we need Python to run the Go service? This is not a difficult question to answer.
Micro-base image
First we want to abandon the idea of using Ubuntu or Debian as a base image, and we look at lighter choices.
Alpine Linux is a miniature Linux distribution that can be used to build a base container with a volume of only 5 m, which is based o
Alpine Linux 3.5.0 released, lightweight releaseGuideAlpine Linux 3.5.0 is released. Alpine Linux is a Community-developed operating system designed for x86 routers, firewalls, virtual private networks, IP address phone boxes, and servers. It implements the security concept during the design, including some active security features such as PaX and SSP, which can prevent software vulnerabilities from being e
Docker Alpine Construction Nginx
1,pull a base image
As for how to pull own mirroring and build mirrors can refer to Docker hub simple use can also pull the Docker hub in this chapter of the Mirror
[Root@gitlab conf]# Docker Pull Marksugar/alpineUsing default Tag:latestLatest:pulling from Marksugar/alpine
E110a4a17941:already exists92c6475c18dd:pull CompleteDigest:sha256:5ae1b32053247f3d251fe5ee56aa817d
1. Download the dind imageDocker Pull Docker:dind2. Perform the imageDocker run-it--privileged--name some-docker-d docker:dind3. In-mirror processing--no-cache Icu-libs4. Download the Dotnet tar packageHTTPS://www.microsoft.com/net/download/thank-you/dotnet-sdk-2.1.302-linux-x64-alpine-binaries Very clear for theHTTPS://download.microsoft.com/download/4/0/9/40920432-3302-47a8-b13c-bbc4848ad114/ Dotnet-sdk-2.1.302-linux-musl-x64.tar.gz5. Copy to the ho
I used to use Alpine to deploy services in Docker.tiangolo/uwsgi-nginx-flask:python3.6-alpine3.7 This image was recently used when deploying flaskSomeone else wrote the flask image, which includes the Uwsgi NginxIt's easy to use.However, it is always not installed when installing the lxml library.Multiple queries.Discover that the system library in the mirror is missing something.RUN apk add--no-cache gcc musl-dev libxslt-devInstalling GCC Musl-dev Li
"attack surface", more secure and so on.
Figure 5: Can the target image be smaller?
General application developers do not build their base image and target mirrors from scratch mirroring, and developers pick the right base image. The presence of some "fly-level" or even "grass-grade" Official base image provides a condition for this situation.
Figure 6: Size comparison for some base image (from Imagelayers.io screenshot)
From the graph, we can have two choices: BusyBox and
This is a creation in
Article, where the information may have evolved or changed.
The original text connection is: http://blog.csdn.net/freewebsys/article/details/53509676Not reproduced without the permission of the blogger.Bo main address is: Http://blog.csdn.net/freewebsys
1. Start learning to build Docker images
http://study.163.com/course/courseMain.htm?courseId=1273002The course is about building with CentOS. I've been using CentOS all the time, but there's a problem.Is the CentOS mirro
Run the container, the discovery has been in the containercreating state, sad a reminder, just started to encounter a bit of trouble, the following talk about how to find problems and solveTo run the container command:[[email protected]149 ~]# kubectl run my-alpine--image=alpine--replicas=2Ping Www.baidu.comView CodeView Pods Status1 [[email protected]149 ~]# kubectl Get pods2NAME re
Preparatory work:
At first, you need to register a user in https://hub.docker.com/
Demonstrates the process of uploading a mirror to the Docker hub
Pull a mirror
First you need a mirror
[Root@localhost ~]# Docker Pull benyoo/alpine:3.4.201608123.4.20160812:pulling from Benyoo/alpine
E110a4a17941:already existsDigest:sha256:41250fea2bc5dfdc204d54e4d2108aae7a452876bed359ae277983aea4ae3e02status:download
example:
Docker swarm join 172.18.18.201: 2377
This node joined a Swarm as a worker.
View nodes on the manager node
[Vagrant @ centos01 ~] $ Docker node ls
ID NAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS LEADER
8i07v3mx5ogdz1z68iide3yrn centos03 Accepted Ready Active
Cioe124z1315ucs5rwd8n2dv * centos01 Accepted Ready Active Reachable Yes
Dfsp35af3tvt1ztf6ffcehtko centos02 Accepted Ready Active
Publish Service
Run the following command on the manager:
[Vagrant @ centos01 ~] $ Docker servic
example:
Docker swarm join 172.18.18.201: 2377
This node joined a Swarm as a worker.
View nodes on the manager node
[Vagrant @ centos01 ~] $ Docker node ls
ID NAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS LEADER
8i07v3mx5ogdz1z68iide3yrn centos03 Accepted Ready Active
Cioe124z1315ucs5rwd8n2dv * centos01 Accepted Ready Active Reachable Yes
Dfsp35af3tvt1ztf6ffcehtko centos02 Accepted Ready Active
Publish Service
Run the following command on the manager:
[Vagrant @ centos01 ~] $ Docker servic
-FPM
Database: Mysql/postgresql
Cache Service: Redis/memcache
This is the simplest architectural way, in the early days of Docker development, Docker was heavily abused, for example, a mirror in the start of multi-service, log collection is still in accordance with the Syslog or other old way, the mirror capacity is very large, the base image can reach 80M, which and Docker The idea was completely different, and the Alpine Linux distribution
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.