X BOL wishing you a very and Happy New year

Alternative content

Our Sponsors



Download BioinformaticsOnline(BOL) Apps in your chrome browser.




Basic docker commands !

  • Public
By Jit 1743 days ago Comments (2)
jit@jit-HP-Pro-3335-MT:~/Downloads/testDock$ sudo docker system df TYPE TOTAL ACTIVE SIZE RECLAIMABLE Images 47 39 3.701GB 3.177GB (85%) Containers 121 0 1.513GB 1.513GB (100%) Local Volumes 0 0 0B 0B Build Cache 0 0 0B 0B jit@jit-HP-Pro-3335-MT:~/Downloads/testDock$ sudo docker system prune WARNING! This will remove: - all stopped containers - all networks not used by at least one container - all dangling images - all dangling build cache Are you sure you want to continue? [y/N] y Deleted Containers: 0b523b97fd6d70456bad5843147ec3f5c069c20cc1d7048ce78202058b63b2a6 9d6d29988baa09b2f1a1745de448896d2820ba52f9927497d5a1d433cb01c61a 5baf6ec5bb11291090b386ad85574a64db7bbb7a01d504e6d6174a80e05628bb Deleted Images: deleted: sha256:a62df23989f7419cfb04d9fee7fee8c6dcf548bbb0af6a63bd02d5629f2189f8 deleted: sha256:d8c4b90ecbd8d3ad6a09a34c5880d9d68233ec2e5760a630684e1012eaf4ded6 deleted: sha256:85a4247b883f9cc31cb59e93f135d243837190bcd010b626604895fa8f20dcec Total reclaimed space: 2.049GB jit@jit-HP-Pro-3335-MT:~/Downloads/testDock$ sudo docker system df TYPE TOTAL ACTIVE SIZE RECLAIMABLE Images 9 0 3.165GB 3.165GB (100%) Containers 0 0 0B 0B Local Volumes 0 0 0B 0B Build Cache 0 0 0B 0B jit@jit-HP-Pro-3335-MT:~/Downloads/testDock$ sudo docker build -t mydocker . Sending build context to Docker daemon 9.023MB Step 1/12 : FROM ubuntu:14.04 ---> 6e4f1fe62ff1 Step 2/12 : FROM perl:latest ---> 82330051f9cb Step 3/12 : FROM bioperl/bioperl-deps ---> e890cc223da3 Step 4/12 : MAINTAINER "Jitendra Narayan" <jnarayan81@gmail.com> ---> Using cache ---> 13519702cbe1 Step 5/12 : RUN apt-get update --yes && apt-get install --yes git ---> Using cache ---> 0974217c0b0e Step 6/12 : RUN apt-get install --yes build-essential gcc-multilib perl ---> Using cache ---> 96d284c0408b Step 7/12 : RUN apt-get install -y bioperl && apt-get install -y libstatistics-distributions-perl && apt-get install -y libterm-progressbar-simple-perl && apt-get install -y libbio-scf-perl ---> Using cache ---> 3509d5eb05a5 Step 8/12 : RUN apt-get install -y curl && cpan install App::cpanminus ---> Using cache ---> e79748ebdffd Step 9/12 : RUN cpanm install File::chdir && cpanm install lib::abs && cpanm install File::Remove && cpanm install Spreadsheet::Read && cpanm install Statistics::ChiSquare ---> Using cache ---> d34787da52e0 Step 10/12 : WORKDIR home/ ---> Using cache ---> d1ba7714283f Step 11/12 : COPY autoConTAMPR home/ ---> Using cache ---> cc3fe61a6e14 Step 12/12 : ENTRYPOINT ["perl", "home/bin/autoConTAMPR.pl"] ---> Using cache ---> 4a2cc5876794 Successfully built 4a2cc5876794 Successfully tagged mydocker:latest jit@jit-HP-Pro-3335-MT:~/Downloads/testDock$ sudo docker run mydocker --.---. .-. .--- / \ / ^ \ --autoConTAMPR v0.1-- Citation - autoConTAMPR: Automatic Contingency Table Analysis of Minority Peak Ranks License: Creative Commons Licence Bug-reports and requests to: https://github.com/jnarayan81/autoConTAMPR/issues Operating system: linux Perl executable at: /usr/bin/perl Please check manual. Usage: autoConTAMPR.pl --validate/-v autoConTAMPR.pl --validate/-v --conf/-c <configuration file> autoConTAMPR.pl --plot/-p autoConTAMPR.pl --plot/-p --conf/-c <configuration file> autoConTAMPR.pl --install/-i autoConTAMPR.pl --install/-i --conf/-c <configuration file> jit@jit-HP-Pro-3335-MT:~/Downloads/testDock$ sudo docker system info Client: Debug Mode: false Server: Containers: 1 Running: 0 Paused: 0 Stopped: 1 Images: 17 Server Version: 19.03.8 Storage Driver: overlay2 Backing Filesystem: <unknown> Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init init version: fec3683 Security Options: apparmor seccomp Profile: default Kernel Version: 4.15.0-88-generic Operating System: Ubuntu 18.04.4 LTS OSType: linux Architecture: x86_64 CPUs: 2 Total Memory: 3.594GiB Name: jit-HP-Pro-3335-MTL Docker Root Dir: /var/lib/docker Debug Mode: 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

Comments

  • Jit 1206 days ago

    Attached the running docker 

    Instead of using -i or -t options, use the attach command to connect to a running container:

    docker attach container_id
  • Jit 1206 days ago

    Start the docker container

    docker start [options] container_id

    Stop the docker container

    docker stop --time=20 container_id

    Kill a docker container

    docker kill [option] container_id