In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to install zsh and docker under Alpine linux". In daily operation, I believe many people have doubts about how to install zsh and docker under Alpine linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to install zsh and docker under Alpine linux". Next, please follow the editor to study!
Install zsh
Official website address: https://ohmyz.sh/
# alpine linux# apk add zsh curl wget git
Refer to the official website
# Via curl$ sh-c "$(curl-fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"# Via wget# sh-c" $(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh-O -) "
Change the shell of the current user
# alpine linux# sed-I-e "s/bin\ / ash/bin\ / zsh/" / etc/passwd# exit
Log in to shell again
Install docker to remove the old version of docker, if any. ➜~ apk del docker➜ ~ rm-rf / etc/docker / var/lib/docker / var/run/docker
If there is no installation package for docker, you need to add the community address to / etc/apk/repositories
➜~ apk add docker (1Accord 8) Installing libmnl (1.0.4-r0) (2Acer 8) Installing jansson (2.10-r0) (3x8) Installing libnftnl-libs (1.0.8-r1) (4Compare 8) Installing iptables (1.6.1-r1) (5Accord 8) Installing libltdl (2.4.6-r4) (6Accord 8) Installing libseccomp (2.3.2-r1) (7gamma 8) Installing docker (17.12.1-r0) Executing docker- 17.12.1-r0.pre-install (8 + 8) Installing docker-zsh-completion (17.12.1-r0) Executing busybox-1.27.2-r8.triggerOK: 710 MiB in 65 packages
Start the service
➜~ rc-service docker start* / var/log/docker.log: creating file* / var/log/docker.log: correcting mode* / var/log/docker.log: correcting owner* Starting docker. [ok]
Verify that the service is started
# docker info ➜~ docker versionClient:Version: 17.12.1-ceAPI version: 1.35Go version: go1.9.4Git commit: 9584b2309eBuilt: Wed Mar 7 13:17:02 2018OS/Arch: linux/amd64Server:Engine:Version: 17.12.1-ceAPI version: 1.35 (minimum version 1.12) Go version: go1.9.4Git commit: v17.12.1-ceBuilt: Wed Mar 7 13:16:22 2018OS/Arch: linux/amd64Experimental: false➜ ~ rc-update add docker boot* service docker added to runlevel boot
Script loaded by service startup
➜~ rc-service-r docker/etc/init.d/docker
Enable remote api and configure domestic mirrors
➜~ vim / etc/conf.d/dockerDOCKER_ options defaults to a null value # / etc/conf.d/docker: config file for / etc/init.d/docker# where the docker daemon output gets piped# this contains both stdout and stderr. If you need to separate them,# see the settings below#DOCKER_LOGFILE= "/ var/log/docker.log" # where the docker daemon stdout gets piped# if this is not set, DOCKER_LOGFILE is used#DOCKER_OUTFILE= "/ var/log/docker-out.log" # where the docker daemon stderr gets piped# if this is not set DOCKER_LOGFILE is used#DOCKER_ERRFILE= "/ var/log/docker-err.log" # where docker's pid get stored#DOCKER_PIDFILE= "/ run/docker.pid" # where the docker daemon itself is run from#DOCKERD_BINARY= "/ usr/bin/dockerd" # any other random options you want to pass to dockerDOCKER_OPTS= "- H 0.0.0.0 var/log/docker-err.log 2375-H unix:///var/run/docker.sock-- registry-mirror= http://xxxx.m.daocloud.io"# disable grsecurity Features#disable_grsec= "chroot_deny_chmod chroot_deny_mknod"
To restart the docker service, you can remotely telnet port 2375 of docker.
➜~ service docker restart* WARNING: you are stopping a boot service* Stopping docker... [ok] * Starting docker... [ok]➜ ~ telnet 192.168.163.200 2375HTTP/1.1 400 Bad RequestContent-Type: text/plain; charset=utf-8Connection: close400 Bad RequestConnection closed by foreign host ➜~ this is the end of the study on "how to install zsh and docker under Alpine linux". I hope I can solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.