I want to look at last 1 hour of docker container log using docker logs –since option. Which value I should provide for –since parameter? Answer as the help says –since string Show logs since timestamp (e.g. 2013-01-02T13:23:37) or relative (e.g. 42m for 42 minutes I would do docker logs mycontainer_or_id –since 60m This syntax is correct according to my
Tag: docker
Docker $(pwd) and bash aliases
I’m running Docker CE in Ubuntu 16.04. I’ve created a Docker image for the polymer-cli. The idea is to be able to run polymer commands from inside disposable docker containers using bash aliases that mount the current directory, run the command and then destroy the container, like this: This works perfectlty, but if I create a bash alias for this
What starts this docker process on my laptop?
Every time I boot up my Lubuntu 16.04 laptop I can see I have a running docker container: It serves a Jenkins application on the port 80 and requesting localhost/ in the browser redirects to http://localhost/login?from=%2F and shows a Jenkins warning page: A wget request shows: How can I know which service is firing up this docker process ? I
MSSQL Server for Linux Docker Versions
I currently have Microsoft SQL Server 2017 (CTP2.1) – 14.0.600.250 (X64) May 10 2017 12:21:23 Copyright (C) 2017 Microsoft Corporation. All rights reserved. Developer Edition (64-bit) on Linux (Ubuntu 16.04.2 LTS). Are there any earlier versions available? SQL Server 2012, 2014, 2016? I don’t want to run into the problem where I need to back up and restore a database
Dynamically pick the user GUI and UID who’s running Docker at the host from entrypoint
I have the following script as the ENTRYPOINT of my Dockerfile and therefore Docker image: Everything is running fine for Linux since the GUI and UID for most of the distros is 1000 (we’re using Fedora and Ubuntu). Windows – I think – doesn’t care about it, but again the script works properly and everything goes well. The problem comes
How to run linux command before starting up git bash terminal
I am working with Docker on my windows machine via git bash. Since git bash does not record the current status on closing, I need to set some environment variables related to Docker every time when I start a new terminal. The command I would like to run before start-up is: Or better yet, have a bash script including other
Is alpine distribution food for big scale apps?
While studying and learning Docker, I’ve read a lot about linux distributions and I always read positive comments in Alpine because of it being lightweight but what are the disadvantages of using lightweight? I’m guessing that because it’s lightweight, it also has a disadvantage when it comes to scaling.. Also, what can be the advantage of a lightweight distribution compare
Script takes parameters from the previous run
I am using docker container that runs Alpine Linux.It runs some bash script async The first time it runs it seems it does nothing it should write to some database but when I run it second time It does work but it use parameters from the previous run i.e param1 and param2. Without &>/dev/null &disown it works fine from the
Starting container as a non-root user vs starting as root and then downgrade to non-root
I am creating some Docker images and I am reading how others have been doing this. I have identified three general patterns when it comes to the user that runs processes inside the container: It uses root user for everything (spawned process(es) inside container run under root). It uses root user, does some stuff, then downgrades to non-root user (so
Docker — mounting a volume not behaving like regular mount
I am new to docker so I am certain I am doing something wrong. I am also not a php developer but that shouldn’t matter in this case. I am using a drupal docker image which has data at the /var/www/html directory. I am attempting to overwrite this data with a drupal site from a local directory on the host