Skip to content

Commit

Permalink
Add user docker config file. Make docker ps command more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry committed May 5, 2020
1 parent 4c601e3 commit 5e38014
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,7 @@ LC_ALL=C.UTF-8

## Production docker version
docker -v
Docker version 19.03.5, build 633a0ea838
Docker version 19.03.5, build 633a0ea838

## Set UTC timezone
`sudo timedatectl set-timezone UTC`
3 changes: 3 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"psFormat": "table {{.Names}} \\t{{.Command}}\\t{{.Ports}}\\t{{.Status}}"
}
11 changes: 10 additions & 1 deletion install-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,25 @@ sudo apt-get update
#sudo apt-get install -y docker-ce=18.06.3~ce~3-0~ubuntu

# New production version
sudo apt-get install docker-ce=5:19.03.5~3-0~ubuntu-bionic docker-ce-cli=5:19.03.5~3-0~ubuntu-bionic containerd.io
sudo apt-get install -y \
docker-ce=5:19.03.5~3-0~ubuntu-bionic \
docker-ce-cli=5:19.03.5~3-0~ubuntu-bionic \
containerd.io

sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

mkdir -p ~/.docker
cp config.json ~/.docker


if [ ! -f ~/.ssh/id_rsa ]; then
ssh-keygen -t rsa -b 4096 -N "" -f ~/.ssh/id_rsa
fi

touch ~/.ssh/authorized_keys

echo "-----------------------"

cat ~/.ssh/id_rsa.pub

0 comments on commit 5e38014

Please sign in to comment.