整理文档
This commit is contained in:
@ -27,36 +27,17 @@ docker pull quay.io/username/image:tag
|
||||
|
||||
docker pull quay.dockerproxy.com/username/image:tag
|
||||
|
||||
|
||||
|
||||
docker run -d \
|
||||
--name some-postgres \
|
||||
-e POSTGRES_PASSWORD=cEnq!rnvWV7Z!~+7ag \
|
||||
-p 5444:5444\
|
||||
quay.io/enterprisedb/postgresql:12
|
||||
|
||||
|
||||
|
||||
|
||||
docker run -d --name some-postgres \
|
||||
-e POSTGRES_PASSWORD=cEnq!rnvWV7Z!~+7ag \
|
||||
quay.io/enterprisedb/postgresql:12
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
docker run -it \
|
||||
--name some-postgres \
|
||||
quay.io/enterprisedb/postgresql:12 \
|
||||
psql -U postgres
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
mytsql 172.17.0.3
|
||||
|
||||
|
||||
|
||||
|
||||
@ -110,67 +91,6 @@ $ docker run -d \
|
||||
|
||||
mysql_native_password
|
||||
|
||||
|
||||
|
||||
caching_sha2_password
|
||||
|
||||
|
||||
|
||||
|
||||
镜像
|
||||
docker run -itd --name=ubuntu ubuntu:18.04 /bin/bash
|
||||
|
||||
apt-get update && apt-get install lsb-core
|
||||
|
||||
|
||||
|
||||
su -c 'echo "deb [arch=amd64] https://apt.enterprisedb.com/$(lsb_release -cs)-edb/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/edb-$(lsb_release -cs).list'
|
||||
|
||||
|
||||
su -c 'echo "machine apt.enterprisedb.com login start password oIVqaoGTDFL5aYHD" > /etc/apt/auth.conf.d/edb.conf'
|
||||
|
||||
apt-get -y install apt-transport-https
|
||||
|
||||
apt-get install -y dialog
|
||||
|
||||
apt-get install -y wget
|
||||
|
||||
apt-get install -y vim
|
||||
|
||||
wget -q -O - https://apt.enterprisedb.com/edb-deb.gpg.key | apt-key add -
|
||||
|
||||
apt update
|
||||
|
||||
apt-get -y install edb-as12-server
|
||||
|
||||
/usr/lib/edb-as/12/bin/pg_ctl -D /var/lib/edb-as/12/main -l /var/log/edb-as/edb-as-12-main.log start
|
||||
|
||||
|
||||
|
||||
/usr/lib/edb-as/12/bin/pg_ctl -D /var/lib/edb-as/12/main -l /var/log/edb-as/edb-as-12-main.log restart
|
||||
|
||||
|
||||
|
||||
su - enterprisedb
|
||||
|
||||
docker run -itd -v /opt/edb-as:/var/lib/edb-as/ -v /var/log/edb-as:/var/log/edb-as -p 5444:5444 --name=myedb myedb:12 /bin/bash
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
docker run -itd -v /opt/edb-as:/var/lib/edb-as/ -v /var/log/edb-as:/var/log/edb-as/ -p 5444:5444 --name=myedb_v2 myedb:12_v2 /bin/bash
|
||||
|
||||
|
||||
|
||||
su enterprisedb && /usr/lib/edb-as/12/bin/pg_ctl -D /var/lib/edb-as/12/main -l /var/log/edb-as/edb-as-12-main.log restart
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
docker run -itd -p 5445:5444 --name=myedb_test myedb:12 /bin/bash
|
||||
|
||||
|
Reference in New Issue
Block a user