Last active
April 16, 2018 11:23
-
-
Save amitkumarj441/a4d42c9a3ee95753a1fec057c3233d52 to your computer and use it in GitHub Desktop.
LSA_log.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ith@ith-ThinkPad-W520:~$ ssh -i /home/ith/Downloads/cloud_mining.pem ubuntu@35.174.105.75 | |
The authenticity of host '35.174.105.75 (35.174.105.75)' can't be established. | |
ECDSA key fingerprint is SHA256:Q4iQXcdjrdt3YKd9A8zhBz3cpEkw9rAgjSJcnkZ2dRs. | |
Are you sure you want to continue connecting (yes/no)? yes | |
Warning: Permanently added '35.174.105.75' (ECDSA) to the list of known hosts. | |
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-1052-aws x86_64) | |
* Documentation: https://help.ubuntu.com | |
* Management: https://landscape.canonical.com | |
* Support: https://ubuntu.com/advantage | |
Get cloud support with Ubuntu Advantage Cloud Guest: | |
http://www.ubuntu.com/business/services/cloud | |
0 packages can be updated. | |
0 updates are security updates. | |
The programs included with the Ubuntu system are free software; | |
the exact distribution terms for each program are described in the | |
individual files in /usr/share/doc/*/copyright. | |
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by | |
applicable law. | |
To run a command as administrator (user "root"), use "sudo <command>". | |
See "man sudo_root" for details. | |
ubuntu@ip-172-31-74-244:~$ ls | |
ubuntu@ip-172-31-74-244:~$ ls -la | |
total 28 | |
drwxr-xr-x 4 ubuntu ubuntu 4096 Apr 15 19:21 . | |
drwxr-xr-x 3 root root 4096 Apr 15 19:16 .. | |
-rw-r--r-- 1 ubuntu ubuntu 220 Aug 31 2015 .bash_logout | |
-rw-r--r-- 1 ubuntu ubuntu 3771 Aug 31 2015 .bashrc | |
drwx------ 2 ubuntu ubuntu 4096 Apr 15 19:21 .cache | |
-rw-r--r-- 1 ubuntu ubuntu 655 May 16 2017 .profile | |
drwx------ 2 ubuntu ubuntu 4096 Apr 15 19:16 .ssh | |
ubuntu@ip-172-31-74-244:~$ cat .ssh/authorized_keys | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCNbZv2xnY7NK6HaNE1BIGHPui9b+GACDlpXSUVSg21Gz7mJPb8Kv4kiNbUoqvX2jizXp+uTFgrI9JUIhWbdDeUrcAKT9hGChO+wCLSvHfwFejrqywjuw3mv4ujK6CkoMG8S08r7ziUFJF3VQI8JhP9UuM2l1G6dD6LmUJ+QIyVOUvQxcbDplAzvUpVSlyxvzYCpXfdtIj5XHnG6zfjXq5B2Vxu8yKAxJhlMusASeeWzpg0PaAN6CbsWK2dxeUXOxAUmOYMkJ7G75dn/3NolUM3UtEel0XGhKsS4KQNoV1f10cXtv61/xXG0OF8m0wKctSInDxQ4unQBnG99bmu2jO7 cloud_mining | |
ubuntu@ip-172-31-74-244:~$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
OK | |
ubuntu@ip-172-31-74-244:~$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
ubuntu@ip-172-31-74-244:~$ sudo apt-get update | |
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease | |
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] | |
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] | |
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] | |
Get:5 https://download.docker.com/linux/ubuntu xenial InRelease [65.8 kB] | |
Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main Sources [868 kB] | |
Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B] | |
Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB] | |
Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB] | |
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB] | |
Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB] | |
Get:12 http://security.ubuntu.com/ubuntu xenial-security/main Sources [120 kB] | |
Get:13 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB] | |
Get:14 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB] | |
Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Sources [304 kB] | |
Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [2,524 B] | |
Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [200 kB] | |
Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [7,944 B] | |
Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [755 kB] | |
Get:20 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources [2,116 B] | |
Get:21 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [313 kB] | |
Get:22 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [63.5 kB] | |
Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [620 kB] | |
Get:24 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources [1,516 B] | |
Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [250 kB] | |
Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.2 kB] | |
Get:27 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,076 B] | |
Get:28 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/main Sources [3,432 B] | |
Get:29 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe Sources [5,816 B] | |
Get:30 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [473 kB] | |
Get:31 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4,836 B] | |
Get:32 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3,220 B] | |
Get:33 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7,104 B] | |
Get:34 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [3,844 B] | |
Get:35 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages [3,539 B] | |
Get:36 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [204 kB] | |
Get:37 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [341 kB] | |
Get:38 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [128 kB] | |
Get:39 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3,208 B] | |
Get:40 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1,408 B] | |
Fetched 25.1 MB in 4s (5,329 kB/s) | |
Reading package lists... Done | |
ubuntu@ip-172-31-74-244:~$ apt-cache policy docker-ce | |
docker-ce: | |
Installed: (none) | |
Candidate: 18.03.0~ce-0~ubuntu | |
Version table: | |
18.03.0~ce-0~ubuntu 500 | |
500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages | |
17.12.1~ce-0~ubuntu 500 | |
500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages | |
17.12.0~ce-0~ubuntu 500 | |
500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages | |
17.09.1~ce-0~ubuntu 500 | |
500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages | |
17.09.0~ce-0~ubuntu 500 | |
500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages | |
17.06.2~ce-0~ubuntu 500 | |
500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages | |
17.06.1~ce-0~ubuntu 500 | |
500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages | |
17.06.0~ce-0~ubuntu 500 | |
500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages | |
17.03.2~ce-0~ubuntu-xenial 500 | |
500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages | |
17.03.1~ce-0~ubuntu-xenial 500 | |
500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages | |
17.03.0~ce-0~ubuntu-xenial 500 | |
500 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages | |
ubuntu@ip-172-31-74-244:~$ sudo apt-get install -y docker-ce | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following additional packages will be installed: | |
aufs-tools cgroupfs-mount libltdl7 pigz | |
Suggested packages: | |
mountall | |
The following NEW packages will be installed: | |
aufs-tools cgroupfs-mount docker-ce libltdl7 pigz | |
0 upgraded, 5 newly installed, 0 to remove and 45 not upgraded. | |
Need to get 34.1 MB of archives. | |
After this operation, 182 MB of additional disk space will be used. | |
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 pigz amd64 2.3.1-2 [61.1 kB] | |
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 aufs-tools amd64 1:3.2+20130722-1.1ubuntu1 [92.9 kB] | |
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 cgroupfs-mount all 1.2 [4,970 B] | |
Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial/main amd64 libltdl7 amd64 2.4.6-0.1 [38.3 kB] | |
Get:5 https://download.docker.com/linux/ubuntu xenial/stable amd64 docker-ce amd64 18.03.0~ce-0~ubuntu [33.9 MB] | |
Fetched 34.1 MB in 0s (34.4 MB/s) | |
Selecting previously unselected package pigz. | |
(Reading database ... 51142 files and directories currently installed.) | |
Preparing to unpack .../pigz_2.3.1-2_amd64.deb ... | |
Unpacking pigz (2.3.1-2) ... | |
Selecting previously unselected package aufs-tools. | |
Preparing to unpack .../aufs-tools_1%3a3.2+20130722-1.1ubuntu1_amd64.deb ... | |
Unpacking aufs-tools (1:3.2+20130722-1.1ubuntu1) ... | |
Selecting previously unselected package cgroupfs-mount. | |
Preparing to unpack .../cgroupfs-mount_1.2_all.deb ... | |
Unpacking cgroupfs-mount (1.2) ... | |
Selecting previously unselected package libltdl7:amd64. | |
Preparing to unpack .../libltdl7_2.4.6-0.1_amd64.deb ... | |
Unpacking libltdl7:amd64 (2.4.6-0.1) ... | |
Selecting previously unselected package docker-ce. | |
Preparing to unpack .../docker-ce_18.03.0~ce-0~ubuntu_amd64.deb ... | |
Unpacking docker-ce (18.03.0~ce-0~ubuntu) ... | |
Processing triggers for man-db (2.7.5-1) ... | |
Processing triggers for libc-bin (2.23-0ubuntu10) ... | |
Processing triggers for ureadahead (0.100.0-19) ... | |
Processing triggers for systemd (229-4ubuntu21.1) ... | |
Setting up pigz (2.3.1-2) ... | |
Setting up aufs-tools (1:3.2+20130722-1.1ubuntu1) ... | |
Setting up cgroupfs-mount (1.2) ... | |
Setting up libltdl7:amd64 (2.4.6-0.1) ... | |
Setting up docker-ce (18.03.0~ce-0~ubuntu) ... | |
Processing triggers for libc-bin (2.23-0ubuntu10) ... | |
Processing triggers for systemd (229-4ubuntu21.1) ... | |
Processing triggers for ureadahead (0.100.0-19) ... | |
ubuntu@ip-172-31-74-244:~$ sudo systemctl status docker | |
● docker.service - Docker Application Container Engine | |
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) | |
Active: active (running) since Sun 2018-04-15 19:24:02 UTC; 17s ago | |
Docs: https://docs.docker.com | |
Main PID: 3334 (dockerd) | |
CGroup: /system.slice/docker.service | |
├─3334 /usr/bin/dockerd -H fd:// | |
└─3340 docker-containerd --config /var/run/docker/containerd/containerd.toml | |
Apr 15 19:24:02 ip-172-31-74-244 dockerd[3334]: time="2018-04-15T19:24:02.170532682Z" level=warning msg="Your kernel does not support swap memory limit" | |
Apr 15 19:24:02 ip-172-31-74-244 dockerd[3334]: time="2018-04-15T19:24:02.170750066Z" level=warning msg="Your kernel does not support cgroup rt period" | |
Apr 15 19:24:02 ip-172-31-74-244 dockerd[3334]: time="2018-04-15T19:24:02.170930930Z" level=warning msg="Your kernel does not support cgroup rt runtime" | |
Apr 15 19:24:02 ip-172-31-74-244 dockerd[3334]: time="2018-04-15T19:24:02.171817932Z" level=info msg="Loading containers: start." | |
Apr 15 19:24:02 ip-172-31-74-244 dockerd[3334]: time="2018-04-15T19:24:02.303422445Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/ | |
Apr 15 19:24:02 ip-172-31-74-244 dockerd[3334]: time="2018-04-15T19:24:02.345589981Z" level=info msg="Loading containers: done." | |
Apr 15 19:24:02 ip-172-31-74-244 dockerd[3334]: time="2018-04-15T19:24:02.355336447Z" level=info msg="Docker daemon" commit=0520e24 graphdriver(s)=overlay2 version=18.03 | |
Apr 15 19:24:02 ip-172-31-74-244 dockerd[3334]: time="2018-04-15T19:24:02.355695405Z" level=info msg="Daemon has completed initialization" | |
Apr 15 19:24:02 ip-172-31-74-244 systemd[1]: Started Docker Application Container Engine. | |
Apr 15 19:24:02 ip-172-31-74-244 dockerd[3334]: time="2018-04-15T19:24:02.379443084Z" level=info msg="API listen on /var/run/docker.sock" | |
ubuntu@ip-172-31-74-244:~$ sudo usermod -aG docker ubuntu | |
ubuntu@ip-172-31-74-244:~$ su -ubuntu | |
su: invalid option -- 'u' | |
Usage: su [options] [LOGIN] | |
Options: | |
-c, --command COMMAND pass COMMAND to the invoked shell | |
-h, --help display this help message and exit | |
-, -l, --login make the shell a login shell | |
-m, -p, | |
--preserve-environment do not reset environment variables, and | |
keep the same shell | |
-s, --shell SHELL use SHELL instead of the default in passwd | |
ubuntu@ip-172-31-74-244:~$ su - ubuntu | |
Password: | |
su: Authentication failure | |
ubuntu@ip-172-31-74-244:~$ su - ubuntu | |
Password: | |
su: Authentication failure | |
ubuntu@ip-172-31-74-244:~$ id -nG | |
ubuntu adm dialout cdrom floppy sudo audio dip video plugdev netdev lxd | |
ubuntu@ip-172-31-74-244:~$ sudo usermod -aG docker username | |
usermod: user 'username' does not exist | |
ubuntu@ip-172-31-74-244:~$ docker | |
Usage: docker COMMAND | |
A self-sufficient runtime for containers | |
Options: | |
--config string Location of client config files (default "/home/ubuntu/.docker") | |
-D, --debug Enable debug mode | |
-H, --host list Daemon socket(s) to connect to | |
-l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info") | |
--tls Use TLS; implied by --tlsverify | |
--tlscacert string Trust certs signed only by this CA (default "/home/ubuntu/.docker/ca.pem") | |
--tlscert string Path to TLS certificate file (default "/home/ubuntu/.docker/cert.pem") | |
--tlskey string Path to TLS key file (default "/home/ubuntu/.docker/key.pem") | |
--tlsverify Use TLS and verify the remote | |
-v, --version Print version information and quit | |
Management Commands: | |
checkpoint Manage checkpoints | |
config Manage Docker configs | |
container Manage containers | |
image Manage images | |
network Manage networks | |
node Manage Swarm nodes | |
plugin Manage plugins | |
secret Manage Docker secrets | |
service Manage services | |
swarm Manage Swarm | |
system Manage Docker | |
trust Manage trust on Docker images | |
volume Manage volumes | |
Commands: | |
attach Attach local standard input, output, and error streams to a running container | |
build Build an image from a Dockerfile | |
commit Create a new image from a container's changes | |
cp Copy files/folders between a container and the local filesystem | |
create Create a new container | |
deploy Deploy a new stack or update an existing stack | |
diff Inspect changes to files or directories on a container's filesystem | |
events Get real time events from the server | |
exec Run a command in a running container | |
export Export a container's filesystem as a tar archive | |
history Show the history of an image | |
images List images | |
import Import the contents from a tarball to create a filesystem image | |
info Display system-wide information | |
inspect Return low-level information on Docker objects | |
kill Kill one or more running containers | |
load Load an image from a tar archive or STDIN | |
login Log in to a Docker registry | |
logout Log out from a Docker registry | |
logs Fetch the logs of a container | |
pause Pause all processes within one or more containers | |
port List port mappings or a specific mapping for the container | |
ps List containers | |
pull Pull an image or a repository from a registry | |
push Push an image or a repository to a registry | |
rename Rename a container | |
restart Restart one or more containers | |
rm Remove one or more containers | |
rmi Remove one or more images | |
run Run a command in a new container | |
save Save one or more images to a tar archive (streamed to STDOUT by default) | |
search Search the Docker Hub for images | |
start Start one or more stopped containers | |
stats Display a live stream of container(s) resource usage statistics | |
stop Stop one or more running containers | |
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE | |
top Display the running processes of a container | |
unpause Unpause all processes within one or more containers | |
update Update configuration of one or more containers | |
version Show the Docker version information | |
wait Block until one or more containers stop, then print their exit codes | |
Run 'docker COMMAND --help' for more information on a command. | |
ubuntu@ip-172-31-74-244:~$ docker info | |
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.37/info: dial unix /var/run/docker.sock: connect: permission denied | |
ubuntu@ip-172-31-74-244:~$ sudo docker info | |
Containers: 0 | |
Running: 0 | |
Paused: 0 | |
Stopped: 0 | |
Images: 0 | |
Server Version: 18.03.0-ce | |
Storage Driver: overlay2 | |
Backing Filesystem: extfs | |
Supports d_type: true | |
Native Overlay Diff: true | |
Logging Driver: json-file | |
Cgroup Driver: cgroupfs | |
Plugins: | |
Volume: local | |
Network: bridge host macvlan null overlay | |
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog | |
Swarm: inactive | |
Runtimes: runc | |
Default Runtime: runc | |
Init Binary: docker-init | |
containerd version: cfd04396dc68220d1cecbe686a6cc3aa5ce3667c | |
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871 | |
init version: 949e6fa | |
Security Options: | |
apparmor | |
seccomp | |
Profile: default | |
Kernel Version: 4.4.0-1052-aws | |
Operating System: Ubuntu 16.04.4 LTS | |
OSType: linux | |
Architecture: x86_64 | |
CPUs: 1 | |
Total Memory: 990.8MiB | |
Name: ip-172-31-74-244 | |
ID: 2G5L:DHYG:IIRV:KHNX:QS7R:TEFX:HIGR:QR5G:DXJD:7BTB:DXRA:5H6F | |
Docker Root Dir: /var/lib/docker | |
Debug Mode (client): false | |
Debug Mode (server): false | |
Registry: https://index.docker.io/v1/ | |
Labels: | |
Experimental: false | |
Insecure Registries: | |
127.0.0.0/8 | |
Live Restore Enabled: false | |
WARNING: No swap limit support | |
ubuntu@ip-172-31-74-244:~$ docker search ubuntu | |
Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.37/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ | |
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.37/images/search?limit=25&term=ubuntu: dial unix /var/run/docker.sock: connect: permission denied | |
ubuntu@ip-172-31-74-244:~$ sudo su | |
root@ip-172-31-74-244:/home/ubuntu# docker search ubuntu | |
NAME DESCRIPTION STARS OFFICIAL AUTOMATED | |
ubuntu Ubuntu is a Debian-based Linux operating sys… 7509 [OK] | |
dorowu/ubuntu-desktop-lxde-vnc Ubuntu with openssh-server and NoVNC 179 [OK] | |
rastasheep/ubuntu-sshd Dockerized SSH service, built on top of offi… 140 [OK] | |
ansible/ubuntu14.04-ansible Ubuntu 14.04 LTS with ansible 91 [OK] | |
ubuntu-upstart Upstart is an event-based replacement for th… 85 [OK] | |
neurodebian NeuroDebian provides neuroscience research s… 47 [OK] | |
ubuntu-debootstrap debootstrap --variant=minbase --components=m… 37 [OK] | |
1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5 ubuntu-16-nginx-php-phpmyadmin-mysql-5 33 [OK] | |
nuagebec/ubuntu Simple always updated Ubuntu docker images w… 22 [OK] | |
tutum/ubuntu Simple Ubuntu docker images with SSH access 18 | |
ppc64le/ubuntu Ubuntu is a Debian-based Linux operating sys… 12 | |
i386/ubuntu Ubuntu is a Debian-based Linux operating sys… 12 | |
1and1internet/ubuntu-16-apache-php-7.0 ubuntu-16-apache-php-7.0 9 [OK] | |
eclipse/ubuntu_jdk8 Ubuntu, JDK8, Maven 3, git, curl, nmap, mc, … 5 [OK] | |
1and1internet/ubuntu-16-nginx-php-phpmyadmin-mariadb-10 ubuntu-16-nginx-php-phpmyadmin-mariadb-10 4 [OK] | |
1and1internet/ubuntu-16-nginx-php-5.6-wordpress-4 ubuntu-16-nginx-php-5.6-wordpress-4 3 [OK] | |
darksheer/ubuntu Base Ubuntu Image -- Updated hourly 3 [OK] | |
codenvy/ubuntu_jdk8 Ubuntu, JDK8, Maven 3, git, curl, nmap, mc, … 3 [OK] | |
1and1internet/ubuntu-16-apache ubuntu-16-apache 3 [OK] | |
pivotaldata/ubuntu A quick freshening-up of the base Ubuntu doc… 1 | |
ossobv/ubuntu Custom ubuntu image from scratch (based on o… 0 | |
pivotaldata/ubuntu-gpdb-dev Ubuntu images for GPDB development 0 | |
1and1internet/ubuntu-16-sshd ubuntu-16-sshd 0 [OK] | |
smartentry/ubuntu ubuntu with smartentry 0 [OK] | |
1and1internet/ubuntu-16-healthcheck ubuntu-16-healthcheck 0 [OK] | |
root@ip-172-31-74-244:/home/ubuntu# docker login | |
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one. | |
Username: amitkumarjaiswal | |
Password: | |
Login Succeeded | |
root@ip-172-31-74-244:/home/ubuntu# docker images | |
REPOSITORY TAG IMAGE ID CREATED SIZE | |
root@ip-172-31-74-244:/home/ubuntu# exit | |
exit | |
ubuntu@ip-172-31-74-244:~$ docker pull mongo | |
Using default tag: latest | |
Warning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.37/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ | |
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.37/images/create?fromImage=mongo&tag=latest: dial unix /var/run/docker.sock: connect: permission denied | |
ubuntu@ip-172-31-74-244:~$ sudo su | |
root@ip-172-31-74-244:/home/ubuntu# docker pull mongo | |
Using default tag: latest | |
latest: Pulling from library/mongo | |
b0568b191983: Pull complete | |
1e8b5b4e67a0: Pull complete | |
a87b29dbb553: Pull complete | |
908c259a6a99: Pull complete | |
2fdec16e62a3: Pull complete | |
e233c6c476cb: Pull complete | |
671c302f3b40: Pull complete | |
207ff3c88601: Pull complete | |
3a7998bea9fd: Pull complete | |
18d605d67f26: Pull complete | |
Digest: sha256:d969194a7c4dcd817cae5dc726b1493547a3ad3f1b30f7f58857adc9ae6a4483 | |
Status: Downloaded newer image for mongo:latest | |
root@ip-172-31-74-244:/home/ubuntu# docker images | |
REPOSITORY TAG IMAGE ID CREATED SIZE | |
mongo latest 5b1317f8158f 4 weeks ago 366MB | |
root@ip-172-31-74-244:/home/ubuntu# docker images | |
REPOSITORY TAG IMAGE ID CREATED SIZE | |
mongo latest 5b1317f8158f 4 weeks ago 366MB | |
root@ip-172-31-74-244:/home/ubuntu# docker help mongo | |
unknown help topic: mongo | |
root@ip-172-31-74-244:/home/ubuntu# docker help | |
Usage: docker COMMAND | |
A self-sufficient runtime for containers | |
Options: | |
--config string Location of client config files (default "/root/.docker") | |
-D, --debug Enable debug mode | |
-H, --host list Daemon socket(s) to connect to | |
-l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info") | |
--tls Use TLS; implied by --tlsverify | |
--tlscacert string Trust certs signed only by this CA (default "/root/.docker/ca.pem") | |
--tlscert string Path to TLS certificate file (default "/root/.docker/cert.pem") | |
--tlskey string Path to TLS key file (default "/root/.docker/key.pem") | |
--tlsverify Use TLS and verify the remote | |
-v, --version Print version information and quit | |
Management Commands: | |
config Manage Docker configs | |
container Manage containers | |
image Manage images | |
network Manage networks | |
node Manage Swarm nodes | |
plugin Manage plugins | |
secret Manage Docker secrets | |
service Manage services | |
swarm Manage Swarm | |
system Manage Docker | |
trust Manage trust on Docker images | |
volume Manage volumes | |
Commands: | |
attach Attach local standard input, output, and error streams to a running container | |
build Build an image from a Dockerfile | |
commit Create a new image from a container's changes | |
cp Copy files/folders between a container and the local filesystem | |
create Create a new container | |
diff Inspect changes to files or directories on a container's filesystem | |
events Get real time events from the server | |
exec Run a command in a running container | |
export Export a container's filesystem as a tar archive | |
history Show the history of an image | |
images List images | |
import Import the contents from a tarball to create a filesystem image | |
info Display system-wide information | |
inspect Return low-level information on Docker objects | |
kill Kill one or more running containers | |
load Load an image from a tar archive or STDIN | |
login Log in to a Docker registry | |
logout Log out from a Docker registry | |
logs Fetch the logs of a container | |
pause Pause all processes within one or more containers | |
port List port mappings or a specific mapping for the container | |
ps List containers | |
pull Pull an image or a repository from a registry | |
push Push an image or a repository to a registry | |
rename Rename a container | |
restart Restart one or more containers | |
rm Remove one or more containers | |
rmi Remove one or more images | |
run Run a command in a new container | |
save Save one or more images to a tar archive (streamed to STDOUT by default) | |
search Search the Docker Hub for images | |
start Start one or more stopped containers | |
stats Display a live stream of container(s) resource usage statistics | |
stop Stop one or more running containers | |
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE | |
top Display the running processes of a container | |
unpause Unpause all processes within one or more containers | |
update Update configuration of one or more containers | |
version Show the Docker version information | |
wait Block until one or more containers stop, then print their exit codes | |
Run 'docker COMMAND --help' for more information on a command. | |
root@ip-172-31-74-244:/home/ubuntu# ls | |
root@ip-172-31-74-244:/home/ubuntu# docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
root@ip-172-31-74-244:/home/ubuntu# docker run --name this_mongo -d -v /opt/mongodb:/data/db -p 27016 mongo | |
b9f51f9d150a8040c55cf37574bf18e1458dbe8903b3e0a2772327a4525809d0 | |
root@ip-172-31-74-244:/home/ubuntu# docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
b9f51f9d150a mongo "docker-entrypoint.s…" 22 seconds ago Up 21 seconds 27017/tcp, 0.0.0.0:32768->27016/tcp this_mongo | |
root@ip-172-31-74-244:/home/ubuntu# mongo localhost:27016 | |
The program 'mongo' is currently not installed. You can install it by typing: | |
apt install mongodb-clients | |
root@ip-172-31-74-244:/home/ubuntu# docker logs mongo | |
Error: No such container: mongo | |
root@ip-172-31-74-244:/home/ubuntu# docker logs mongo | |
Error: No such container: mongo | |
root@ip-172-31-74-244:/home/ubuntu# docker logs | |
"docker logs" requires exactly 1 argument. | |
See 'docker logs --help'. | |
Usage: docker logs [OPTIONS] CONTAINER [flags] | |
Fetch the logs of a container | |
root@ip-172-31-74-244:/home/ubuntu# docker logs this_mongo | |
2018-04-15T22:44:55.269+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=b9f51f9d150a | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] db version v3.6.3 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] git version: 9586e557d54ef70f9ca4b43c26892cd55257e1a5 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] allocator: tcmalloc | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] modules: none | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] build environment: | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] distmod: debian81 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] distarch: x86_64 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] target_arch: x86_64 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] options: { net: { bindIpAll: true } } | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=256M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress), | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.992+0000 I STORAGE [initandlisten] createCollection: admin.system.version with provided UUID: bbec62e3-ce5a-452a-a7eb-2fc78250575a | |
2018-04-15T22:44:56.004+0000 I COMMAND [initandlisten] setting featureCompatibilityVersion to 3.6 | |
2018-04-15T22:44:56.007+0000 I STORAGE [initandlisten] createCollection: local.startup_log with generated UUID: 0e127255-b2fb-4d98-a98e-3aab30d027e6 | |
2018-04-15T22:44:56.017+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data' | |
2018-04-15T22:44:56.018+0000 I NETWORK [initandlisten] waiting for connections on port 27017 | |
root@ip-172-31-74-244:/home/ubuntu# docker logs this_mongo | |
2018-04-15T22:44:55.269+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=b9f51f9d150a | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] db version v3.6.3 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] git version: 9586e557d54ef70f9ca4b43c26892cd55257e1a5 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] allocator: tcmalloc | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] modules: none | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] build environment: | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] distmod: debian81 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] distarch: x86_64 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] target_arch: x86_64 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] options: { net: { bindIpAll: true } } | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=256M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress), | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.992+0000 I STORAGE [initandlisten] createCollection: admin.system.version with provided UUID: bbec62e3-ce5a-452a-a7eb-2fc78250575a | |
2018-04-15T22:44:56.004+0000 I COMMAND [initandlisten] setting featureCompatibilityVersion to 3.6 | |
2018-04-15T22:44:56.007+0000 I STORAGE [initandlisten] createCollection: local.startup_log with generated UUID: 0e127255-b2fb-4d98-a98e-3aab30d027e6 | |
2018-04-15T22:44:56.017+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data' | |
2018-04-15T22:44:56.018+0000 I NETWORK [initandlisten] waiting for connections on port 27017 | |
root@ip-172-31-74-244:/home/ubuntu# this_mongo localhost:27016 | |
this_mongo: command not found | |
root@ip-172-31-74-244:/home/ubuntu# sudo ufw allow 27017 | |
Rules updated | |
Rules updated (v6) | |
root@ip-172-31-74-244:/home/ubuntu# sudo ufw status | |
Status: inactive | |
root@ip-172-31-74-244:/home/ubuntu# sudo systemctl enable mongod | |
Failed to execute operation: No such file or directory | |
root@ip-172-31-74-244:/home/ubuntu# sudo systemctl enable mongo | |
Failed to execute operation: No such file or directory | |
root@ip-172-31-74-244:/home/ubuntu# sudo systemctl enable this_mongo | |
Failed to execute operation: No such file or directory | |
root@ip-172-31-74-244:/home/ubuntu# docker logs this_mongo | |
2018-04-15T22:44:55.269+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=b9f51f9d150a | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] db version v3.6.3 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] git version: 9586e557d54ef70f9ca4b43c26892cd55257e1a5 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] allocator: tcmalloc | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] modules: none | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] build environment: | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] distmod: debian81 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] distarch: x86_64 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] target_arch: x86_64 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] options: { net: { bindIpAll: true } } | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=256M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress), | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.992+0000 I STORAGE [initandlisten] createCollection: admin.system.version with provided UUID: bbec62e3-ce5a-452a-a7eb-2fc78250575a | |
2018-04-15T22:44:56.004+0000 I COMMAND [initandlisten] setting featureCompatibilityVersion to 3.6 | |
2018-04-15T22:44:56.007+0000 I STORAGE [initandlisten] createCollection: local.startup_log with generated UUID: 0e127255-b2fb-4d98-a98e-3aab30d027e6 | |
2018-04-15T22:44:56.017+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data' | |
2018-04-15T22:44:56.018+0000 I NETWORK [initandlisten] waiting for connections on port 27017 | |
2018-04-15T22:49:56.018+0000 I STORAGE [thread1] createCollection: config.system.sessions with generated UUID: 72bccd87-9db8-49d3-a003-82fe797eee41 | |
2018-04-15T22:49:56.033+0000 I INDEX [thread1] build index on: config.system.sessions properties: { v: 2, key: { lastUse: 1 }, name: "lsidTTLIndex", ns: "config.system.sessions", expireAfterSeconds: 1800 } | |
2018-04-15T22:49:56.033+0000 I INDEX [thread1] building index using bulk method; build may temporarily use up to 500 megabytes of RAM | |
2018-04-15T22:49:56.034+0000 I INDEX [thread1] build index done. scanned 0 total records. 0 secs | |
root@ip-172-31-74-244:/home/ubuntu# apt-get update | |
Hit:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial InRelease | |
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] | |
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] | |
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] | |
Hit:5 https://download.docker.com/linux/ubuntu xenial InRelease | |
Fetched 306 kB in 0s (824 kB/s) | |
Reading package lists... Done | |
root@ip-172-31-74-244:/home/ubuntu# service start mongod | |
start: unrecognized service | |
root@ip-172-31-74-244:/home/ubuntu# service start mongo | |
start: unrecognized service | |
root@ip-172-31-74-244:/home/ubuntu# service start mongodb | |
start: unrecognized service | |
root@ip-172-31-74-244:/home/ubuntu# docker volume inspect this_mongo | |
[] | |
Error: No such volume: this_mongo | |
root@ip-172-31-74-244:/home/ubuntu# docker volume inspect mongod | |
[] | |
Error: No such volume: mongod | |
root@ip-172-31-74-244:/home/ubuntu# docker inspect mongo | |
[ | |
{ | |
"Id": "sha256:5b1317f8158fa35a66116d083d8c7e2c64720713b1ce90e2a1ec186e36a98984", | |
"RepoTags": [ | |
"mongo:latest" | |
], | |
"RepoDigests": [ | |
"mongo@sha256:d969194a7c4dcd817cae5dc726b1493547a3ad3f1b30f7f58857adc9ae6a4483" | |
], | |
"Parent": "", | |
"Comment": "", | |
"Created": "2018-03-14T06:33:05.083362088Z", | |
"Container": "645281bad32b8140e0564b31a2c91b1d67022b4753af58b0ebdb4e909ce84535", | |
"ContainerConfig": { | |
"Hostname": "645281bad32b", | |
"Domainname": "", | |
"User": "", | |
"AttachStdin": false, | |
"AttachStdout": false, | |
"AttachStderr": false, | |
"ExposedPorts": { | |
"27017/tcp": {} | |
}, | |
"Tty": false, | |
"OpenStdin": false, | |
"StdinOnce": false, | |
"Env": [ | |
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", | |
"GOSU_VERSION=1.10", | |
"JSYAML_VERSION=3.10.0", | |
"GPG_KEYS=2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5", | |
"MONGO_PACKAGE=mongodb-org", | |
"MONGO_REPO=repo.mongodb.org", | |
"MONGO_MAJOR=3.6", | |
"MONGO_VERSION=3.6.3" | |
], | |
"Cmd": [ | |
"/bin/sh", | |
"-c", | |
"#(nop) ", | |
"CMD [\"mongod\"]" | |
], | |
"ArgsEscaped": true, | |
"Image": "sha256:a9cb3e4848f981714d9840354871e45e60404dde8e1d8202ea5af4ed8f982724", | |
"Volumes": { | |
"/data/configdb": {}, | |
"/data/db": {} | |
}, | |
"WorkingDir": "", | |
"Entrypoint": [ | |
"docker-entrypoint.sh" | |
], | |
"OnBuild": [], | |
"Labels": {} | |
}, | |
"DockerVersion": "17.06.2-ce", | |
"Author": "", | |
"Config": { | |
"Hostname": "", | |
"Domainname": "", | |
"User": "", | |
"AttachStdin": false, | |
"AttachStdout": false, | |
"AttachStderr": false, | |
"ExposedPorts": { | |
"27017/tcp": {} | |
}, | |
"Tty": false, | |
"OpenStdin": false, | |
"StdinOnce": false, | |
"Env": [ | |
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", | |
"GOSU_VERSION=1.10", | |
"JSYAML_VERSION=3.10.0", | |
"GPG_KEYS=2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5", | |
"MONGO_PACKAGE=mongodb-org", | |
"MONGO_REPO=repo.mongodb.org", | |
"MONGO_MAJOR=3.6", | |
"MONGO_VERSION=3.6.3" | |
], | |
"Cmd": [ | |
"mongod" | |
], | |
"ArgsEscaped": true, | |
"Image": "sha256:a9cb3e4848f981714d9840354871e45e60404dde8e1d8202ea5af4ed8f982724", | |
"Volumes": { | |
"/data/configdb": {}, | |
"/data/db": {} | |
}, | |
"WorkingDir": "", | |
"Entrypoint": [ | |
"docker-entrypoint.sh" | |
], | |
"OnBuild": [], | |
"Labels": null | |
}, | |
"Architecture": "amd64", | |
"Os": "linux", | |
"Size": 365987345, | |
"VirtualSize": 365987345, | |
"GraphDriver": { | |
"Data": { | |
"LowerDir": "/var/lib/docker/overlay2/e2eac9a5e51b9cf5f7ab58cdad9ef2f5e74563b62880b6f6383c645e3dd4f62a/diff:/var/lib/docker/overlay2/473c32bbd6ac152bc3f072167330588638e357e87fd7f3d98b93ae3a28c6e644/diff:/var/lib/docker/overlay2/7356beed6c7a68610f2d53f2218cecce6fe1814fce5b97ca6c3efa19378abee3/diff:/var/lib/docker/overlay2/f32b18932bdf5966493e13ec717dc545901f6aa66a31fbc950c25bdc171d4131/diff:/var/lib/docker/overlay2/639cc5f688f442c8dc2d9d072a7d1bf3986160c94e4168b9dbfec322db508587/diff:/var/lib/docker/overlay2/36e7e781c9dd9e8f90f1d24d687e5738f76c15b2a4d5d530a50a7f7ac0886e15/diff:/var/lib/docker/overlay2/2616edeab67a02c1a69d056cfa50fa0620acabb06ba9da9af5aca5219fea0511/diff:/var/lib/docker/overlay2/2169575c3abebd28bac2c160c09c0f13d30a13609f6d9bcbf14651f3bce6f47d/diff:/var/lib/docker/overlay2/012fdcab9461f41fbcc8f7f2e98c83df6d8df0a49e757722a8d40555fefb8bfc/diff", | |
"MergedDir": "/var/lib/docker/overlay2/21fb2ecf806e0d4f12c8a79ee58562188ea7c44578eeb2315248c999e5f48473/merged", | |
"UpperDir": "/var/lib/docker/overlay2/21fb2ecf806e0d4f12c8a79ee58562188ea7c44578eeb2315248c999e5f48473/diff", | |
"WorkDir": "/var/lib/docker/overlay2/21fb2ecf806e0d4f12c8a79ee58562188ea7c44578eeb2315248c999e5f48473/work" | |
}, | |
"Name": "overlay2" | |
}, | |
"RootFS": { | |
"Type": "layers", | |
"Layers": [ | |
"sha256:43efe85a991cac5894f91ee8f45b328bbacd14966d89a8a00b0d06060c64b5ad", | |
"sha256:54e8db6ab32d7f1440c785b926f844c8034ad8bd669084f009bcb4e814240672", | |
"sha256:217a81d3bde9d92d8d59529034afb10f878d68acb1152ce687d78c5ba951c45f", | |
"sha256:d1a481118c6ef327aea3f03746ae8d56b04afa80151bee3d8075f26c68d8a746", | |
"sha256:b597eb624250fab9c1aa22e29d67ce7d989c33424668a8e78527e508bf323bc9", | |
"sha256:4786aaf122f108a3b4f5da7ac80871e4e2014e97ff228837291e55ba71a75cb0", | |
"sha256:2ecbdcef31f175b7005d62bcb981d79f8543ed0564a3fd43c9de6ccd3783930c", | |
"sha256:d6ac487f77161c42f76480b4c8ca533c2578aaaa55b114b61bca56b9cd1a856a", | |
"sha256:5388bfbc2c0172298c169f266f196d0b40b27a80447044b52d9496f7a576e1d5", | |
"sha256:99099bc0f52d2ba7654b36eff2ef63af7d50d7c103af342512a03e18e94373fc" | |
] | |
}, | |
"Metadata": { | |
"LastTagTime": "0001-01-01T00:00:00Z" | |
} | |
} | |
] | |
root@ip-172-31-74-244:/home/ubuntu# docker run --name this_mongo -d -v /opt/mongodb:/data/db -p 27017:27017 mongo | |
docker: Error response from daemon: Conflict. The container name "/this_mongo" is already in use by container "b9f51f9d150a8040c55cf37574bf18e1458dbe8903b3e0a2772327a4525809d0". You have to remove (or rename) that container to be able to reuse that name. | |
See 'docker run --help'. | |
root@ip-172-31-74-244:/home/ubuntu# docker run --name this_mongo -d -v /opt/mongodb:/data/db -p 27016:27016 mongo | |
docker: Error response from daemon: Conflict. The container name "/this_mongo" is already in use by container "b9f51f9d150a8040c55cf37574bf18e1458dbe8903b3e0a2772327a4525809d0". You have to remove (or rename) that container to be able to reuse that name. | |
See 'docker run --help'. | |
root@ip-172-31-74-244:/home/ubuntu# docker container | |
Usage: docker container COMMAND | |
Manage containers | |
Options: | |
Commands: | |
attach Attach local standard input, output, and error streams to a running container | |
commit Create a new image from a container's changes | |
cp Copy files/folders between a container and the local filesystem | |
create Create a new container | |
diff Inspect changes to files or directories on a container's filesystem | |
exec Run a command in a running container | |
export Export a container's filesystem as a tar archive | |
inspect Display detailed information on one or more containers | |
kill Kill one or more running containers | |
logs Fetch the logs of a container | |
ls List containers | |
pause Pause all processes within one or more containers | |
port List port mappings or a specific mapping for the container | |
prune Remove all stopped containers | |
rename Rename a container | |
restart Restart one or more containers | |
rm Remove one or more containers | |
run Run a command in a new container | |
start Start one or more stopped containers | |
stats Display a live stream of container(s) resource usage statistics | |
stop Stop one or more running containers | |
top Display the running processes of a container | |
unpause Unpause all processes within one or more containers | |
update Update configuration of one or more containers | |
wait Block until one or more containers stop, then print their exit codes | |
Run 'docker container COMMAND --help' for more information on a command. | |
root@ip-172-31-74-244:/home/ubuntu# docker container ls | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
b9f51f9d150a mongo "docker-entrypoint.s…" 19 minutes ago Up 19 minutes 27017/tcp, 0.0.0.0:32768->27016/tcp this_mongo | |
root@ip-172-31-74-244:/home/ubuntu# docker info | |
Containers: 1 | |
Running: 1 | |
Paused: 0 | |
Stopped: 0 | |
Images: 1 | |
Server Version: 18.03.0-ce | |
Storage Driver: overlay2 | |
Backing Filesystem: extfs | |
Supports d_type: true | |
Native Overlay Diff: true | |
Logging Driver: json-file | |
Cgroup Driver: cgroupfs | |
Plugins: | |
Volume: local | |
Network: bridge host macvlan null overlay | |
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog | |
Swarm: inactive | |
Runtimes: runc | |
Default Runtime: runc | |
Init Binary: docker-init | |
containerd version: cfd04396dc68220d1cecbe686a6cc3aa5ce3667c | |
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871 | |
init version: 949e6fa | |
Security Options: | |
apparmor | |
seccomp | |
Profile: default | |
Kernel Version: 4.4.0-1052-aws | |
Operating System: Ubuntu 16.04.4 LTS | |
OSType: linux | |
Architecture: x86_64 | |
CPUs: 1 | |
Total Memory: 990.8MiB | |
Name: ip-172-31-74-244 | |
ID: 2G5L:DHYG:IIRV:KHNX:QS7R:TEFX:HIGR:QR5G:DXJD:7BTB:DXRA:5H6F | |
Docker Root Dir: /var/lib/docker | |
Debug Mode (client): false | |
Debug Mode (server): false | |
Username: amitkumarjaiswal | |
Registry: https://index.docker.io/v1/ | |
Labels: | |
Experimental: false | |
Insecure Registries: | |
127.0.0.0/8 | |
Live Restore Enabled: false | |
WARNING: No swap limit support | |
root@ip-172-31-74-244:/home/ubuntu# docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
b9f51f9d150a mongo "docker-entrypoint.s…" 20 minutes ago Up 20 minutes 27017/tcp, 0.0.0.0:32768->27016/tcp this_mongo | |
root@ip-172-31-74-244:/home/ubuntu# docker start b9f51f9d150a | |
b9f51f9d150a | |
root@ip-172-31-74-244:/home/ubuntu# docker logs b9f51f9d150a | |
2018-04-15T22:44:55.269+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=b9f51f9d150a | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] db version v3.6.3 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] git version: 9586e557d54ef70f9ca4b43c26892cd55257e1a5 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] allocator: tcmalloc | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] modules: none | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] build environment: | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] distmod: debian81 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] distarch: x86_64 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] target_arch: x86_64 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] options: { net: { bindIpAll: true } } | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=256M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress), | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.992+0000 I STORAGE [initandlisten] createCollection: admin.system.version with provided UUID: bbec62e3-ce5a-452a-a7eb-2fc78250575a | |
2018-04-15T22:44:56.004+0000 I COMMAND [initandlisten] setting featureCompatibilityVersion to 3.6 | |
2018-04-15T22:44:56.007+0000 I STORAGE [initandlisten] createCollection: local.startup_log with generated UUID: 0e127255-b2fb-4d98-a98e-3aab30d027e6 | |
2018-04-15T22:44:56.017+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data' | |
2018-04-15T22:44:56.018+0000 I NETWORK [initandlisten] waiting for connections on port 27017 | |
2018-04-15T22:49:56.018+0000 I STORAGE [thread1] createCollection: config.system.sessions with generated UUID: 72bccd87-9db8-49d3-a003-82fe797eee41 | |
2018-04-15T22:49:56.033+0000 I INDEX [thread1] build index on: config.system.sessions properties: { v: 2, key: { lastUse: 1 }, name: "lsidTTLIndex", ns: "config.system.sessions", expireAfterSeconds: 1800 } | |
2018-04-15T22:49:56.033+0000 I INDEX [thread1] building index using bulk method; build may temporarily use up to 500 megabytes of RAM | |
2018-04-15T22:49:56.034+0000 I INDEX [thread1] build index done. scanned 0 total records. 0 secs | |
root@ip-172-31-74-244:/home/ubuntu# docker logs -f b9f51f9d150a | |
2018-04-15T22:44:55.269+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=b9f51f9d150a | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] db version v3.6.3 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] git version: 9586e557d54ef70f9ca4b43c26892cd55257e1a5 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] allocator: tcmalloc | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] modules: none | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] build environment: | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] distmod: debian81 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] distarch: x86_64 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] target_arch: x86_64 | |
2018-04-15T22:44:55.270+0000 I CONTROL [initandlisten] options: { net: { bindIpAll: true } } | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=256M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress), | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.992+0000 I STORAGE [initandlisten] createCollection: admin.system.version with provided UUID: bbec62e3-ce5a-452a-a7eb-2fc78250575a | |
2018-04-15T22:44:56.004+0000 I COMMAND [initandlisten] setting featureCompatibilityVersion to 3.6 | |
2018-04-15T22:44:56.007+0000 I STORAGE [initandlisten] createCollection: local.startup_log with generated UUID: 0e127255-b2fb-4d98-a98e-3aab30d027e6 | |
2018-04-15T22:44:56.017+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data' | |
2018-04-15T22:44:56.018+0000 I NETWORK [initandlisten] waiting for connections on port 27017 | |
2018-04-15T22:49:56.018+0000 I STORAGE [thread1] createCollection: config.system.sessions with generated UUID: 72bccd87-9db8-49d3-a003-82fe797eee41 | |
2018-04-15T22:49:56.033+0000 I INDEX [thread1] build index on: config.system.sessions properties: { v: 2, key: { lastUse: 1 }, name: "lsidTTLIndex", ns: "config.system.sessions", expireAfterSeconds: 1800 } | |
2018-04-15T22:49:56.033+0000 I INDEX [thread1] building index using bulk method; build may temporarily use up to 500 megabytes of RAM | |
2018-04-15T22:49:56.034+0000 I INDEX [thread1] build index done. scanned 0 total records. 0 secs | |
^C | |
root@ip-172-31-74-244:/home/ubuntu# docker exec -i -t this_mongo /bin/bash | |
root@b9f51f9d150a:/# ls | |
bin dev home lib64 opt run sys var | |
boot docker-entrypoint-initdb.d js-yaml.js media proc sbin tmp | |
data etc lib mnt root srv usr | |
root@b9f51f9d150a:/# ls -la | |
total 188 | |
drwxr-xr-x 1 root root 4096 Apr 15 22:44 . | |
drwxr-xr-x 1 root root 4096 Apr 15 22:44 .. | |
-rwxr-xr-x 1 root root 0 Apr 15 22:44 .dockerenv | |
drwxr-xr-x 2 root root 4096 Mar 12 00:00 bin | |
drwxr-xr-x 2 root root 4096 Nov 19 15:32 boot | |
drwxr-xr-x 4 root root 4096 Mar 14 06:33 data | |
drwxr-xr-x 5 root root 340 Apr 15 22:44 dev | |
drwxr-xr-x 2 root root 4096 Mar 14 06:30 docker-entrypoint-initdb.d | |
drwxr-xr-x 1 root root 4096 Apr 15 22:44 etc | |
drwxr-xr-x 2 root root 4096 Nov 19 15:32 home | |
-rw-r--r-- 1 root root 106999 Mar 14 06:30 js-yaml.js | |
drwxr-xr-x 1 root root 4096 Nov 27 2014 lib | |
drwxr-xr-x 2 root root 4096 Mar 12 00:00 lib64 | |
drwxr-xr-x 2 root root 4096 Mar 12 00:00 media | |
drwxr-xr-x 2 root root 4096 Mar 12 00:00 mnt | |
drwxr-xr-x 2 root root 4096 Mar 12 00:00 opt | |
dr-xr-xr-x 126 root root 0 Apr 15 22:44 proc | |
drwx------ 2 root root 4096 Mar 12 00:00 root | |
drwxr-xr-x 3 root root 4096 Mar 12 00:00 run | |
drwxr-xr-x 2 root root 4096 Mar 12 00:00 sbin | |
drwxr-xr-x 2 root root 4096 Mar 12 00:00 srv | |
dr-xr-xr-x 13 root root 0 Apr 15 22:44 sys | |
drwxrwxrwt 1 root root 4096 Apr 15 22:44 tmp | |
drwxr-xr-x 1 root root 4096 Mar 12 00:00 usr | |
drwxr-xr-x 1 root root 4096 Mar 12 00:00 var | |
root@b9f51f9d150a:/# mongodb | |
bash: mongodb: command not found | |
root@b9f51f9d150a:/# exit | |
exit | |
root@ip-172-31-74-244:/home/ubuntu# docker run --name this_mongo -d -v /opt/mongodb:/data/db -p 27016:27016 mongo mydb | |
docker: Error response from daemon: Conflict. The container name "/this_mongo" is already in use by container "b9f51f9d150a8040c55cf37574bf18e1458dbe8903b3e0a2772327a4525809d0". You have to remove (or rename) that container to be able to reuse that name. | |
See 'docker run --help'. | |
root@ip-172-31-74-244:/home/ubuntu# docker exec -i -t this_mongo /bin/bash | |
root@b9f51f9d150a:/# mydb | |
bash: mydb: command not found | |
root@b9f51f9d150a:/# mongo | |
MongoDB shell version v3.6.3 | |
connecting to: mongodb://127.0.0.1:27017 | |
MongoDB server version: 3.6.3 | |
Welcome to the MongoDB shell. | |
For interactive help, type "help". | |
For more comprehensive documentation, see | |
http://docs.mongodb.org/ | |
Questions? Try the support group | |
http://groups.google.com/group/mongodb-user | |
Server has startup warnings: | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine | |
2018-04-15T22:44:55.271+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. | |
2018-04-15T22:44:55.990+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'. | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'. | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never' | |
2018-04-15T22:44:55.991+0000 I CONTROL [initandlisten] | |
> mydb | |
2018-04-15T23:10:14.948+0000 E QUERY [thread1] ReferenceError: mydb is not defined : | |
@(shell):1:1 | |
> ls | |
[native code] | |
> show dbs | |
admin 0.000GB | |
config 0.000GB | |
local 0.000GB | |
> use myWiki | |
switched to db myWiki | |
> show dbs | |
admin 0.000GB | |
config 0.000GB | |
local 0.000GB | |
> show dbs | |
admin 0.000GB | |
config 0.000GB | |
local 0.000GB | |
> ls | |
[native code] | |
> show dbs | |
admin 0.000GB | |
config 0.000GB | |
local 0.000GB | |
> db.myWiki | |
myWiki.myWiki | |
> show dbs | |
admin 0.000GB | |
config 0.000GB | |
local 0.000GB | |
> show databases | |
admin 0.000GB | |
config 0.000GB | |
local 0.000GB | |
> show dbs | |
admin 0.000GB | |
config 0.000GB | |
local 0.000GB | |
> show users | |
> load() | |
true | |
> use myWiki | |
switched to db myWiki | |
> quit() | |
root@b9f51f9d150a:/# exit | |
exit | |
root@ip-172-31-74-244:/home/ubuntu# ls /opt/mongodb/ | |
collection-0--2942143816673966533.wt diagnostic.data index-5--2942143816673966533.wt _mdb_catalog.wt storage.bson WiredTiger.lock | |
collection-2--2942143816673966533.wt index-1--2942143816673966533.wt index-6--2942143816673966533.wt mongod.lock WiredTiger WiredTiger.turtle | |
collection-4--2942143816673966533.wt index-3--2942143816673966533.wt journal sizeStorer.wt WiredTigerLAS.wt WiredTiger.wt | |
root@ip-172-31-74-244:/home/ubuntu# cat /opt/mongodb/index-1--2942143816673966533.wt | |
A�#�Jר�y<featureCompatibilityVersion | |
3,V�J0�������?2 | |
�������������root@ip-172-31-74-244:/home/ubuntu# ls /opt/mongodb/journal/ | |
WiredTigerLog.0000000001 WiredTigerPreplog.0000000001 WiredTigerPreplog.0000000002 | |
root@ip-172-31-74-244:/home/ubuntu# docker stop this_mongo | |
this_mongo | |
root@ip-172-31-74-244:/home/ubuntu# docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
root@ip-172-31-74-244:/home/ubuntu# exit | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment